mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
-Wimplicit-fallthrough=3 is added by -Wextra, which we already set. Bumping the warning level only changes how fall-through comments are parsed, with level 5 turning off fall-through comments entirely. This is unnecessary and results in having to do extra work to squash warnings when included external code uses fall-through. This change also adds /* FALLTHROUGH */ comments where H5_ATTR_FALLTHROUGH is used so compilers that don't use attributes but do respect fall-through comments don't raise spurious warnings.
7 lines
97 B
Plaintext
7 lines
97 B
Plaintext
-Walloca
|
|
-Walloc-zero
|
|
-Wduplicated-branches
|
|
-Wformat-overflow=2
|
|
-Wformat-truncation=1
|
|
-Wrestrict
|