summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-12-29 14:09:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-12-29 14:09:37 (GMT)
commit9b96fd2003ae74cca389cc4c2216b4371d6eb173 (patch)
tree29b12511569e5eb93ce8409a7fd70b83248b1af5
parentccf1afca9a8c6fa8fa348b75a36302a21d53ee97 (diff)
downloadhdf5-9b96fd2003ae74cca389cc4c2216b4371d6eb173.zip
hdf5-9b96fd2003ae74cca389cc4c2216b4371d6eb173.tar.gz
hdf5-9b96fd2003ae74cca389cc4c2216b4371d6eb173.tar.bz2
[svn-r9723] Purpose:before_signed_unsigned_changes
Add new file Description: Add new PC-Lint/Flexelint configuration files
-rw-r--r--src/hdf5-lin.lnt24
-rw-r--r--src/hdf5-win.lnt39
2 files changed, 63 insertions, 0 deletions
diff --git a/src/hdf5-lin.lnt b/src/hdf5-lin.lnt
new file mode 100644
index 0000000..da20937
--- /dev/null
+++ b/src/hdf5-lin.lnt
@@ -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
+
diff --git a/src/hdf5-win.lnt b/src/hdf5-win.lnt
new file mode 100644
index 0000000..350b603
--- /dev/null
+++ b/src/hdf5-win.lnt
@@ -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)
+
+