summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-12-04 13:22:41 +0000
committerDavid Mitchell <davem@iabyn.com>2012-12-04 13:39:55 +0000
commitccde85316a0db149f30359ebfdf031ef602b0344 (patch)
tree5f9accee8d15f9bd5574b53db1b871cc6bf945a4 /inline.h
parentc434e88d3bead3f9417903defe6f23a1ad0ca522 (diff)
downloadperl-ccde85316a0db149f30359ebfdf031ef602b0344.tar.gz
silence some clang warnings
principally, proto.h was sometimes being included twice - once before a fn decl, and once after - giving rise to a 'decl after def' warning. Also, S_croak_memory_wrap was declared static in every source file, but not used in some. So selectively disable the unused-function warning.
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/inline.h b/inline.h
index 776a30499e..072d1b203d 100644
--- a/inline.h
+++ b/inline.h
@@ -126,8 +126,11 @@ 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*() */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-function"
static void
S_croak_memory_wrap(void)
{
Perl_croak_nocontext("%s",PL_memory_wrap);
}
+#pragma clang diagnostic pop