hdf5/config/gnu-warnings/error-general
David Young 2f09d8f3c8 Move the GNU warnings configuration under config/gnu-warnings/ and trim
the filename prefixes.  Update config/gnu-flags to suit.

I also made changes to config/cmake/HDFCompilerFlags.cmake, but I'm not
sure they're correct.
2020-03-18 21:12:53 -05:00

25 lines
636 B
Plaintext

#
# HDF5 code should not trigger the following warnings under any
# circumstances, so ask the compiler to treat them as errors:
#
-Werror=bad-function-cast
-Werror=cast-align
-Werror=declaration-after-statement
-Werror=format
-Werror=implicit-function-declaration
-Werror=missing-declarations
-Werror=missing-prototypes
-Werror=nested-externs
-Werror=old-style-definition
-Werror=packed
-Werror=pointer-sign
-Werror=pointer-to-int-cast
-Werror=redundant-decls
-Werror=strict-prototypes
-Werror=switch
-Werror=unused-but-set-variable
-Werror=unused-function
-Werror=unused-parameter
-Werror=unused-variable
#-Werror=discarded-qualifiers