summaryrefslogtreecommitdiffstats
path: root/config/clang-warnings/error-general
blob: 558d74085539c49b6c7c2f0ca464a88bcd7150d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# 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=implicit-function-declaration
#-Werror=incompatible-pointer-types
-Werror=missing-declarations
-Werror=packed
-Werror=shadow
#-Werror=sometimes-uninitialized
-Werror=switch
#
#-Werror=discarded-qualifiers
#
# Note:  For macos 10.12, etc
#   H5Dint.c,H5Dchunk.c,H5Gint.c
#   -Wincompatible-pointer-types-discards-qualifiers
#   #   H5Dvirtual.c,H5SL.c
#   -Wsometimes-uninitialized
#
# NOTE: File Driver files are not compatible with these warnings as errors
#     H5FDdirect.c,H5FDmpio.c,H5FDros3.c,
#       -Werror=unused-function
#
-Wunused-function
#
#     H5FDdrvr_module.h
#       -Werror=unused-variable
#
-Wunused-variable
#
#     H5VLpassthru.c
#       -Werror=unused-parameter
#
-Wunused-parameter
#
#
#
# NOTE: Tools files are not compatible with these warnings as errors
#     lib/h5tools.c
#       -Werror=cast-align
#
-Wcast-align
#
#     lib/h5tools_utils.c
#       -Werror=unused-parameter
#
#
# NOTE: JNI files are not compatible with these warnings as errors
#     jni/h5pDCPLImp.c,jni/nativeData.c,jni/h5util.c,jni/h5rImp.c
#     jni/h5sImp.c,jni/h5tImp.c
#       -Werror=cast-align
#     jni/h5util.c
#       -Werror=format(-overflow)
#
-Wformat
#
#
#Examples and tests do not use the same set of extensive warning flags as libraries
# Here is a list of tests and examples that have issues with the stricter warnings as error
#
# NOTE: Test files are not compatible with these warnings as errors
#     thread_id.c,
#       -Werror=unused-function
#     dsets.c
#       -Werror=unused-parameter
#
#
# NOTE: Examples files are not compatible with these warnings as errors
#     h5_vds-eiger.c,h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,h5_vds-percival-unlim-maxmin.c
#     h5_vds-percival.c,h5_read.c,h5_rdwt.c,h5_mount.c,h5_extend.c,h5_extend_write.c
#     h5_write.c,h5_vds-simpleIO.c,h5_ref2reg_deprec.c,h5_crtgrp.c,h5_select.c
#     h5_vds-percival-unlim.c,h5_crtatt.c,h5_group.c,h5_attribute.c,h5_crtdat.c
#     h5_reference_deprec.c
#     h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
#       -Werror=strict-prototypes
#     h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
#       -Werror=old-style-definition
#     h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,
#       -Werror=unused-variable
#     h5_elink_unix2win.c,h5_extlink.c,h5_attribute.c
#       -Werror=unused-parameter