mirror of https://github.com/citusdata/citus.git
Compile with a few extra warnings turned on
I found these warnings in this blogpost: https://kristerw.blogspot.com/2017/09/useful-gcc-warning-options-not-enabled.html They seemed like the could be useful, even though they were currently not being triggered.enable-extra-warnings
parent
ee2a9a7fe7
commit
bb22141b8b
|
@ -175,6 +175,10 @@ CITUSAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])
|
|||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wmissing-format-attribute])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wmissing-declarations])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wmissing-prototypes])
|
||||
# CITUSAC_PROG_CC_CFLAGS_OPT([-Wnull-dereference])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wduplicated-cond])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wlogical-op])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wjump-misses-init])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Wshadow])
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Werror=vla]) # visual studio does not support these
|
||||
CITUSAC_PROG_CC_CFLAGS_OPT([-Werror=implicit-int])
|
||||
|
|
|
@ -46,12 +46,12 @@
|
|||
/* Define to 1 if you have the `zstd' library (-lzstd). */
|
||||
#undef HAVE_LIBZSTD
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdio.h> header file. */
|
||||
#undef HAVE_STDIO_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
|
@ -94,5 +94,7 @@
|
|||
/* The size of `void *', as computed by sizeof. */
|
||||
#undef SIZEOF_VOID_P
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
/* Define to 1 if all of the C90 standard headers exist (not just the ones
|
||||
required in a freestanding environment). This macro is provided for
|
||||
backward compatibility; new code need not use it. */
|
||||
#undef STDC_HEADERS
|
||||
|
|
Loading…
Reference in New Issue