mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r9723] Purpose:
Add new file Description: Add new PC-Lint/Flexelint configuration files
This commit is contained in:
parent
ccf1afca9a
commit
9b96fd2003
24
src/hdf5-lin.lnt
Normal file
24
src/hdf5-lin.lnt
Normal file
@ -0,0 +1,24 @@
|
||||
// Define the __func__ macro so we don't get warnings about using it.
|
||||
-d__func__="NoFunctionName"
|
||||
|
||||
// Needed for gcc assert() macro
|
||||
-function(exit,__assert_fail)
|
||||
|
||||
// Needed to allow 'long long' with gcc
|
||||
+fll
|
||||
|
||||
// Suppress message about "Constant value boolean" in assert macros
|
||||
-emacro(506,assert)
|
||||
|
||||
// Turn off warnings about not using the return value from these functions:
|
||||
-emacro(534,HDfflush,HDgetrusage,HDgettimeofday,HDputc)
|
||||
|
||||
// Turn off warnings about converting an enum to an int
|
||||
-emacro(641,H5_INC_ENUM,H5_DEC_ENUM)
|
||||
|
||||
// Suppress message about "Expression with side effects passed to repeated parameter 1 in macro 'assert'"
|
||||
-esym(666,assert)
|
||||
|
||||
// Include shared lint options file
|
||||
hdf5.lnt
|
||||
|
39
src/hdf5-win.lnt
Normal file
39
src/hdf5-win.lnt
Normal file
@ -0,0 +1,39 @@
|
||||
// Define the __FUNCTION__ so we don't get warnings about using it.
|
||||
-d__FUNCTION__="NoFunctionName"
|
||||
|
||||
// Turn off warnings about "Ignoring return value of function" for
|
||||
// H5open() in public error macros
|
||||
-emacro(534, H5Epush_ret, H5Epush_goto)
|
||||
|
||||
// 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 "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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user