No unused param warnings for clang-12 and gcc-11.

These have too many false positives in -Werror tests on the github CI
since we often provide empty stub functions for functionality not needed
for particular configurations.
This commit is contained in:
Darren Tucker 2022-02-28 22:21:36 +11:00
parent 96558ecd87
commit f2ff669347
1 changed files with 2 additions and 2 deletions

4
.github/configs vendored
View File

@ -38,13 +38,13 @@ case "$config" in
CC="clang-12" CC="clang-12"
# clang's implicit-fallthrough requires that the code be annotated with # clang's implicit-fallthrough requires that the code be annotated with
# __attribute__((fallthrough)) and does not understand /* FALLTHROUGH */ # __attribute__((fallthrough)) and does not understand /* FALLTHROUGH */
CFLAGS="-Wall -Wextra -O2 -Wno-error=implicit-fallthrough" CFLAGS="-Wall -Wextra -O2 -Wno-error=implicit-fallthrough -Wno-error=unused-parameter"
CONFIGFLAGS="--with-pam --with-Werror" CONFIGFLAGS="--with-pam --with-Werror"
;; ;;
gcc-11-Werror) gcc-11-Werror)
CC="gcc" CC="gcc"
# -Wnoformat-truncation in gcc 7.3.1 20180130 fails on fmt_scaled # -Wnoformat-truncation in gcc 7.3.1 20180130 fails on fmt_scaled
CFLAGS="-Wall -Wextra -Wno-format-truncation -O2 -Wimplicit-fallthrough=4" CFLAGS="-Wall -Wextra -O2 -Wno-format-truncation -Wimplicit-fallthrough=4 -Wno-unused-parameter"
CONFIGFLAGS="--with-pam --with-Werror" CONFIGFLAGS="--with-pam --with-Werror"
;; ;;
clang*|gcc*) clang*|gcc*)