diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2020-02-14 10:19:04 +0100 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2020-02-14 10:40:23 +0100 |
commit | 6ba617dbe2b79d13ceec7d452e44ecab3bb814e7 (patch) | |
tree | 176d5b78a4df7a1e617f7b800ee5a8d8dad8a048 /configure.ac | |
parent | 470664f2b788e2cce9202991d11476a6fef00ef4 (diff) |
build: add Wreturn-type to Werror flags
This is supported by GCC and Clang.
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
https://clang.llvm.org/docs/DiagnosticsReference.html#wreturn-type
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index dc233c8423..d0fcf48713 100644 --- a/configure.ac +++ b/configure.ac @@ -330,6 +330,7 @@ if test "x$enable_werror" = "xyes"; then AX_CHECK_COMPILE_FLAG([-Werror=thread-safety-analysis],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=thread-safety-analysis"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Werror=unused-variable],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=unused-variable"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Werror=date-time],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=date-time"],,[[$CXXFLAG_WERROR]]) + AX_CHECK_COMPILE_FLAG([-Werror=return-type],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=return-type"],,[[$CXXFLAG_WERROR]]) fi if test "x$CXXFLAGS_overridden" = "xno"; then |