mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
* Refactor warning macros Replaces the scheme in H5warnings.h with a more compiler-agnostic one that relocates ifdef complexity to the warnings header file and uses better naming. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
28 lines
782 B
Plaintext
28 lines
782 B
Plaintext
# Note that some of the flags listed here really should be developer
|
|
# flags (listed in separate files, gnu-warnings-developer*) but we put
|
|
# them here because they are not raised by the current code and we'd like to
|
|
# know if they do start showing up.
|
|
#
|
|
# NOTE: Don't add -Wpadded here since we can't/won't fix the (many)
|
|
# warnings that are emitted. If you need it, add it from the
|
|
# environment variable at configure time.
|
|
-Wall
|
|
-Wcast-qual
|
|
-Wconversion
|
|
-Wextra
|
|
-Wfloat-equal
|
|
-Wformat=2
|
|
-Wformat-nonliteral
|
|
-Winit-self
|
|
-Winvalid-pch
|
|
-Wmissing-include-dirs
|
|
-Wshadow
|
|
-Wundef
|
|
-Wwrite-strings
|
|
-pedantic
|
|
# NOTE: Due to the divergence in the C and C++, we're dropping support for
|
|
# compiling the C library with a C++ compiler and dropping the -Wc++-compat
|
|
# warning.
|
|
#
|
|
-Wno-c++-compat
|