X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=90c8d679f1836129b689e7319672bca39c498c59;hp=f75991a90148425ce99f8f990da8027b12f89000;hb=e071bb364d93a7d80294d263d6494600a6be2286;hpb=9184924d53536411e905a158c51b572e92e4dbc4 diff --git a/configure.ac b/configure.ac index f75991a90..90c8d679f 100644 --- a/configure.ac +++ b/configure.ac @@ -59,22 +59,29 @@ AC_TYPE_UINT8_T # WARN_CFLAGS and WARN_CXXFLAGS. m4_define([WARN_FLAGS_COMMON_LIST], [ dnl -Wall dnl + -Wextra dnl + -Wmissing-declarations dnl -Wnull-dereference dnl -Wundef dnl -Wredundant-decls dnl + -Wshadow dnl + -Wsuggest-attribute=format dnl + -Wtautological-constant-out-of-range-compare dnl Clang specific + -Wwrite-strings dnl + -Wformat=2 dnl + -Wstrict-aliasing dnl -Wmissing-noreturn dnl + -Wduplicated-cond dnl + -Wduplicated-branches dnl -Wlogical-op dnl + -Winit-self dnl dnl We currently get this warning when building with Clang: dnl dnl /usr/include/setjmp.h:54:12: error: declaration of built-in function '__sigsetjmp' requires the declaration of the 'jmp_buf' type, commonly provided in the header . [-Werror,-Wincomplete-setjmp-declaration] dnl extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __THROWNL; dnl ^ -Wno-incomplete-setjmp-declaration dnl - -Wmissing-declarations dnl - -Wshadow dnl - -Wno-gnu-folding-constant dnl - -Wsuggest-attribute=format dnl - -Wformat=2 dnl + -Wno-gnu-folding-constant dnl Clang specific ]) # Detect warning flags specific to the C compiler and append them to @@ -83,6 +90,8 @@ m4_define([WARN_FLAGS_C_LIST], [ dnl -Wdiscarded-qualifiers dnl -Wmissing-prototypes dnl -Wmissing-parameter-type dnl + -Wjump-misses-init dnl + -Wnested-externs dnl ]) # Pass -Werror as an extra flag during the test: this is needed to make the