POSIX: silence some compiler warnings
authorDavid Mitchell <davem@iabyn.com>
Mon, 18 Nov 2013 15:24:04 +0000 (15:24 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 18 Nov 2013 17:14:22 +0000 (17:14 +0000)
ext/POSIX/POSIX.xs
ext/POSIX/lib/POSIX.pm

index b3319fb9015faae11ba89b3f76f1bdc62933e843..6caea489bfeb76ef4eed2374ea4186e1b206ebe4 100644 (file)
@@ -580,6 +580,10 @@ BOOT:
     CV *cv;
     const char *file = __FILE__;
 
+
+    /* silence compiler warning about not_here() defined but not used */
+    if (0) not_here("");
+
     /* Ensure we get the function, not a macro implementation. Like the C89
        standard says we can...  */
 #undef isalnum
@@ -744,6 +748,8 @@ getiflag(termios_ref)
        case 3:
            RETVAL = termios_ref->c_lflag;
            break;
+        default:
+           RETVAL = 0; /* silence compiler warning */
        }
 #else
        not_here(GvNAME(CvGV(cv)));
index d5f344adfe60231041e080a3dc34c99381d186f6..68c0688164b487f28874c0d4afecde8e803959c3 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 
 our ($AUTOLOAD, %SIGRT);
 
-our $VERSION = '1.35';
+our $VERSION = '1.36';
 
 require XSLoader;