Skip to content

Commit 8a681d8

Browse files
committed
Update Perl warning suppressions for Clang
Perl XS code generates a lot of warnings. Some additional Clang warnings now need to be suppressed.
1 parent fc15437 commit 8a681d8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile.am

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,16 @@ distclean-local: clean-local
341341
python/tests/__pycache__
342342

343343
# Suppress some warnings for Perl, PHP, Python, and Ruby code because the
344-
# auto-generated code otherwise generates them. This suppression list
345-
# covers both GCC and Clang.
344+
# auto-generated code otherwise generates them. This suppression list covers
345+
# both GCC and Clang.
346346
PERL_WARNINGS = -Wno-write-strings -Wno-nested-externs \
347347
-Wno-strict-prototypes -Wno-missing-declarations \
348348
-Wno-missing-prototypes -Wno-redundant-decls -Wno-shadow \
349349
-Wno-old-style-definition -Wno-conversion \
350350
-Wno-gnu-statement-expression -Wno-cast-align -Wno-comma \
351351
-Wno-covered-switch-default -Wno-extra-semi-stmt \
352-
-Wno-implicit-fallthrough
352+
-Wno-implicit-fallthrough -Wno-declaration-after-statement \
353+
-Wno-switch-enum -Wno-bad-function-cast
353354
PHP_WARNINGS = -Wno-strict-prototypes -Wno-write-strings \
354355
-Wno-missing-prototypes -Wno-unused-parameter -Wno-sign-compare \
355356
-Wno-redundant-decls -Wno-old-style-definition -Wno-float-equal \

0 commit comments

Comments
 (0)