diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-09 14:12:07 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-09 14:12:19 +0100 |
| commit | e0477f6d20726d958685e44ea33f448a0c3ae15c (patch) | |
| tree | 3a1e71dfe026648ee1a4e6add1b6bef3807fd5d4 /configure.ac | |
| parent | Merge #9039: Various serialization simplifcations and optimizations (diff) | |
| parent | Add notes about variable names and shadowing (diff) | |
| download | discoin-e0477f6d20726d958685e44ea33f448a0c3ae15c.tar.xz discoin-e0477f6d20726d958685e44ea33f448a0c3ae15c.zip | |
Merge #8794: Enable -Wshadow by default
359bac7 Add notes about variable names and shadowing (Pavel Janík)
fd5654c Check and enable -Wshadow by default. (Pavel Janík)
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 705327e81..29e3115e7 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then AX_CHECK_COMPILE_FLAG([-Wextra],[CXXFLAGS="$CXXFLAGS -Wextra"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Wformat],[CXXFLAGS="$CXXFLAGS -Wformat"],,[[$CXXFLAG_WERROR]]) AX_CHECK_COMPILE_FLAG([-Wformat-security],[CXXFLAGS="$CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]]) + AX_CHECK_COMPILE_FLAG([-Wshadow],[CXXFLAGS="$CXXFLAGS -Wshadow"],,[[$CXXFLAG_WERROR]]) ## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all ## unknown options if any other warning is produced. Test the -Wfoo case, and |