summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-19 22:03:25 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-20 07:09:12 -0400
commitc1d6452f050377e0a41737b56b61d63ea95b3abe (patch)
treebd2485b4ee00ec0f5544a2accc9a6dffdd859e04 /inline.h
parentdd791c72c136e634557810ed390db9ed30f1576f (diff)
downloadperl-c1d6452f050377e0a41737b56b61d63ea95b3abe.tar.gz
GCC_DIAG_IGNORE/RESTORE whine in non-gcc if at file level.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/inline.h b/inline.h
index 87c2ac47f3..8b74452ea2 100644
--- a/inline.h
+++ b/inline.h
@@ -188,13 +188,17 @@ S_sv_or_pv_pos_u2b(pTHX_ SV *sv, const char *pv, STRLEN pos, STRLEN *lenp)
/* ------------------------------- handy.h ------------------------------- */
/* saves machine code for a common noreturn idiom typically used in Newx*() */
+#ifdef GCC_DIAG_PRAGMA
GCC_DIAG_IGNORE(-Wunused-function);
+#endif
static void
S_croak_memory_wrap(void)
{
Perl_croak_nocontext("%s",PL_memory_wrap);
}
+#ifdef GCC_DIAG_PRAGMA
GCC_DIAG_RESTORE;
+#endif
/* ------------------------------- utf8.h ------------------------------- */