mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r24136] Add base set of warnings for gcc
This commit is contained in:
parent
0682846479
commit
f6949a66d7
@ -460,6 +460,7 @@ ENDIF (HDF5_DISABLE_COMPILER_WARNINGS)
|
||||
# break into groups (from the config/gnu-flags file)
|
||||
#-----------------------------------------------------------------------------
|
||||
IF (NOT MSVC)
|
||||
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline")
|
||||
# Append warning flags
|
||||
# Don't use the '-Wtraditional' flag, we're way past having K&R C code
|
||||
# SET (H5_CFLAGS "${H5_CFLAGS} -Wtraditional")
|
||||
|
Loading…
Reference in New Issue
Block a user