Browse Source

Use the -Wunused flag instead of the separate flags.

master
Reece H. Dunn 7 years ago
parent
commit
20dc74eafb
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      configure.ac

+ 2
- 4
configure.ac View File

dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
dnl ================================================================ dnl ================================================================


AX_CHECK_COMPILE_FLAG([-Wunused-function], [CFLAGS="-Wunused-function $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-variable], [CFLAGS="-Wunused-variable $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-but-set-variable], [CFLAGS="-Wunused-but-set-variable $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused], [CFLAGS="-Wunused $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])


dnl ================================================================ dnl ================================================================
dnl Generate output. dnl Generate output.

Loading…
Cancel
Save