Debian Codegraph @

Modules/ThirdParty/HDF5/src/itkhdf5/config/clang-warnings/error-general

raw
1 #
2 # HDF5 code should not trigger the following warnings under any
3 # circumstances, so ask the compiler to treat them as errors:
4 #
5 -Werror=bad-function-cast
6 -Werror=implicit-function-declaration
7 -Werror=incompatible-pointer-types
8 -Werror=missing-declarations
9 -Werror=packed
10 -Werror=shadow
11 -Werror=switch
12 #
13 # NOTE: Following files are not compatible with incompatible-pointer-types as errors
14 # src/H5Dchunk.c,src/H5Dint.c,src/H5Gint.c,src/H5HFcache.c,src/H5I.c,src/H5T.c
15 -Wno-error=incompatible-pointer-types-discards-qualifiers
16 #
17 #
18 # NOTE: File Driver files are not compatible with these warnings as errors
19 # H5FDdirect.c,H5FDmpio.c,H5FDros3.c,
20 # -Werror=unused-function
21 #
22 -Wunused-function
23 #
24 # H5FDdrvr_module.h
25 # -Werror=unused-variable
26 #
27 -Wunused-variable
28 #
29 # H5VLpassthru.c
30 # -Werror=unused-parameter
31 #
32 -Wunused-parameter
33 #
34 #
35 #
36 # NOTE: Tools files are not compatible with these warnings as errors
37 # lib/h5tools.c
38 # -Werror=cast-align
39 #
40 -Wcast-align
41 #
42 # lib/h5tools_utils.c
43 # -Werror=unused-parameter
44 #
45 #
46 # NOTE: JNI files are not compatible with these warnings as errors
47 # jni/h5pDCPLImp.c,jni/nativeData.c,jni/h5util.c,jni/h5rImp.c
48 # jni/h5sImp.c,jni/h5tImp.c
49 # -Werror=cast-align
50 # jni/h5util.c
51 # -Werror=format(-overflow)
52 #
53 -Wformat
54 #
55 #
56 #Examples and tests do not use the same set of extensive warning flags as libraries
57 # Here is a list of tests and examples that have issues with the stricter warnings as error
58 #
59 # NOTE: Test files are not compatible with these warnings as errors
60 # thread_id.c,
61 # -Werror=unused-function
62 # dsets.c
63 # -Werror=unused-parameter
64 #
65 #
66 # NOTE: Examples files are not compatible with these warnings as errors
67 # h5_vds-eiger.c,h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,h5_vds-percival-unlim-maxmin.c
68 # h5_vds-percival.c,h5_read.c,h5_rdwt.c,h5_mount.c,h5_extend.c,h5_extend_write.c
69 # h5_write.c,h5_vds-simpleIO.c,h5_ref2reg_deprec.c,h5_crtgrp.c,h5_select.c
70 # h5_vds-percival-unlim.c,h5_crtatt.c,h5_group.c,h5_attribute.c,h5_crtdat.c
71 # h5_reference_deprec.c
72 # h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
73 # -Werror=strict-prototypes
74 # h5_rdwt.c,h5_crtgrp.c,h5_crtatt.c,h5_crtdat.c
75 # -Werror=old-style-definition
76 # h5_vds-exclim.c,h5_vds.c,h5_vds-exc.c,
77 # -Werror=unused-variable
78 # h5_elink_unix2win.c,h5_extlink.c,h5_attribute.c
79 # -Werror=unused-parameter
80