summaryrefslogtreecommitdiffstats
path: root/src/hdf5.lnt
blob: 75d1d7658b9ed7f0395215ed3b77efe0c5720c09 (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
// Turn off warnings about not using the return value from these functions:
-esym(534, HDfprintf, H5E_clear, H5E_push)
-esym(534, H5FL_arr_free, H5FL_blk_free, H5FL_reg_free)
-esym(534, H5I_clear_group, H5I_destroy_group)
-esym(534, H5MM_xfree)
-esym(534, H5TB_dfree)
-esym(534, H5V_array_fill)

// Turn off warnings about not using the inlined H5V* functions:
-esym(528, H5V_vector_reduce_product, H5V_vector_inc)
-esym(528, H5V_vector_cmp, H5V_vector_cmp_s, H5V_vector_cmp_u)
-esym(528, H5V_vector_zerop_s, H5V_vector_zerop_u)

// Turn off warnings about not "Expression-like macro not parenthesized" for
// enumerated type increment & decrement macros:
-esym(773, H5_INC_ENUM, H5_DEC_ENUM)

// Turn off warnings about not using PABLO_MASK macro
-esym(750, PABLO_MASK)

// Suppress message about our use of 'goto' in our error macros
-emacro(801,HGOTO_DONE)

// Suppress message about using 'goto' in a few functions
-efunc(801,H5_term_library,H5_trace)

// Suppress message about "boolean test of a paranthesized assignment"
-e820

// Suppress message about "Constant value boolean" in FUNC_ENTER* macros
-emacro(506,FUNC_ENTER_API,FUNC_ENTER_NOAPI)

// Suppress message about "Suspicious cast" in FUNC_ENTER* macros
-emacro(611,FUNC_ENTER_API,FUNC_ENTER_NOAPI)

// Suppress message about "Boolean within 'if' always evaluates false" in FUNC_ENTER* macros
-emacro(774,FUNC_ENTER_API,FUNC_ENTER_NOAPI)

// Suppress message about "Constant value boolean" in IS_H5FD_MPI* macros
-emacro(506,IS_H5FD_MPI)

// Suppress message about "Boolean within 'if' always evaluates false" in IS_H5FD_MPI* macros
-emacro((774),IS_H5FD_MPI)

// Suppress message about "Static variable found within inline function" in FUNC_ENTER* macros
-emacro(1534,FUNC_ENTER_NOINIT)

// Suppress message about "Shift right of signed quantity" in H5I_GRP macro
-emacro(702,H5I_GRP)

// Suppress message about "Constant expression evaluates to 0 in expression" in H5FL_ARR* macros
-emacro(778,H5FL_ARR_DEFINE_COMMON)

// Suppress message about "Union initialization" in H5FL_ARR* macros
-emacro(708,H5FL_ARR_DEFINE_COMMON)

// Suppress message about "enum constant not used within defaulted switch"
-e788

// Indicate functions that are like printf()
-printf(2,HDfprintf)

// Tell lint about additional printf() format codes that HDfprintf understands
-printf_code(a,haddr_t)
-printf_code(Hu,hsize_t)
-printf_code(Hd,hssize_t)
-printf_code(Zu,size_t)
-printf_code(Zd,ssize_t)

/* So far, the following files have been linted with these options:
        H5.c
        H5A.c
        H5AC.c
        H5B.c
        H5D.c
*/