Browse Source

Enable and fix -Wreturn-type warnings.

master
Reece H. Dunn 7 years ago
parent
commit
553a6f38a6
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      configure.ac

+ 3
- 2
configure.ac View File

@@ -275,8 +275,9 @@ dnl
dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
dnl ================================================================

AX_CHECK_COMPILE_FLAG([-Wunused], [CFLAGS="-Wunused $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wreturn-type], [CFLAGS="-Wreturn-type $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused], [CFLAGS="-Wunused $CFLAGS"])
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [CFLAGS="-Wunused-parameter $CFLAGS"])

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

Loading…
Cancel
Save