X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=f1cc77d0e1658219b209f302c10081c4953195bb;hb=6a442676d02cabb5d4954bb8ca9a27ce83584ad4;hp=f9f3fab71632018a2e7138fec64a63283edfe148;hpb=01bf7a3a1fbc42bb8b069793619ca786f52ca6de;p=babeltrace.git diff --git a/configure.ac b/configure.ac index f9f3fab7..f1cc77d0 100644 --- a/configure.ac +++ b/configure.ac @@ -700,6 +700,10 @@ m4_define([WARN_FLAGS_LIST], [ dnl -Wundef dnl -Wredundant-decls dnl -Wshadow dnl + dnl GCC's -Wshadow warns about constructor parameters shadowing fields, but + dnl Clang's does not. Enable Clang's `-Wshadow-field-in-constructor`, to make + dnl Clang warn about that. + -Wshadow-field-in-constructor dnl -Wjump-misses-init dnl -Wsuggest-attribute=format dnl -Wtautological-constant-out-of-range-compare dnl @@ -712,6 +716,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl -Wduplicated-cond dnl -Wduplicated-branches dnl -Wlogical-op dnl + -Wsuggest-override dnl -Wno-unused-parameter dnl -Wno-sign-compare dnl dnl