summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-11-18 15:24:04 +0000
committerDavid Mitchell <davem@iabyn.com>2013-11-18 17:14:22 +0000
commitdf164f52fe0eb3807220860c2ba97135a0264905 (patch)
tree61fd981b3cf820c676e37555d208fdf9f7c60ed1
parent48ece0902e4df68650e04e671ee4574e9d25ca80 (diff)
downloadperl-df164f52fe0eb3807220860c2ba97135a0264905.tar.gz
POSIX: silence some compiler warnings
-rw-r--r--ext/POSIX/POSIX.xs6
-rw-r--r--ext/POSIX/lib/POSIX.pm2
2 files changed, 7 insertions, 1 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index b3319fb901..6caea489bf 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -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)));
diff --git a/ext/POSIX/lib/POSIX.pm b/ext/POSIX/lib/POSIX.pm
index d5f344adfe..68c0688164 100644
--- a/ext/POSIX/lib/POSIX.pm
+++ b/ext/POSIX/lib/POSIX.pm
@@ -4,7 +4,7 @@ use warnings;
our ($AUTOLOAD, %SIGRT);
-our $VERSION = '1.35';
+our $VERSION = '1.36';
require XSLoader;