summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2006-10-13 12:49:11 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-13 11:27:54 +0000
commit4b1498031c9cdb3b51e796086a0f68b78bfd09d5 (patch)
treeea6072a25728236529985d451d89404bd706260c
parent04838ceaee8e1344b7b5599b60f8b5fc6a1f385f (diff)
downloadperl-4b1498031c9cdb3b51e796086a0f68b78bfd09d5.tar.gz
compiler warning noreturn
From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226120A70@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@29007
-rw-r--r--doio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 6afb89bcca..e0a1fc572a 100644
--- a/doio.c
+++ b/doio.c
@@ -1288,7 +1288,12 @@ Perl_my_stat(pTHX)
return (PL_laststatval = PerlLIO_fstat(dirfd(IoDIRP(io)), &PL_statcache));
#else
Perl_die(aTHX_ PL_no_func, "dirfd");
- NORETURN_FUNCTION_END;
+ /* NOT REACHED */
+ return 0;
+ /* Can't use NORETURN_FUNCTION_END because Perl_die is not
+ * __attribute__noreturn__
+ * Can't use DIE because that does not return an integer
+ */
#endif
} else {
if (ckWARN2(WARN_UNOPENED,WARN_CLOSED))