diff options
author | David Mitchell <davem@iabyn.com> | 2012-12-04 13:22:41 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-04 13:39:55 +0000 |
commit | ccde85316a0db149f30359ebfdf031ef602b0344 (patch) | |
tree | 5f9accee8d15f9bd5574b53db1b871cc6bf945a4 /inline.h | |
parent | c434e88d3bead3f9417903defe6f23a1ad0ca522 (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |