summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/error-5
blob: 74137b566bd4466e2ca43bd53481db5d4cc90c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-Werror=incompatible-pointer-types
#
# In GCC 4.4.7, the compiler gripes about shadowed global
# declarations when a local variable uses the name of a
# function that's in a system header file.  For some reason,
# later versions of GCC (e.g., 5.2.0) don't complain about
# the shadowed globals.  Maybe later versions are less fussy?
# Anyway, the shadowing seems to be harmless, and GCC 4.4.7
# is not a supported compiler, so let us promote shadowed globals
# warnings to errors only for GCC 5 and later.
#
#
#
# NOTE: JNI files are not compatible with these warnings as errors
#     jni/h5aImp.c,jni/h5eImp.c,jni/h5lImp.c,jni/h5oImp.c
#       -Werror=shadow
-Wshadow