From 99434724d0375280abe44944b0c39f45991f26df Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Wed, 2 Apr 2014 20:59:01 +0300 Subject: Fix splint warnings, add splint test case --- tests/splint/splint.rc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/splint/splint.rc (limited to 'tests/splint/splint.rc') diff --git a/tests/splint/splint.rc b/tests/splint/splint.rc new file mode 100644 index 00000000..c77e210f --- /dev/null +++ b/tests/splint/splint.rc @@ -0,0 +1,36 @@ ++checks ++partial ++matchanyintegral ++strictlib +-isoreserved # to be fixed in 0.3 +-nullassign +-predboolint +-predboolptr ++ptrnegate +-switchloopbreak ++ignoresigns +-infloopsuncon +-type + +# splint's memory checks don't quite work without annotations +-mustfreeonly +-compmempass +-nullret +-observertrans +-statictrans +-compdestroy +-nullpass +-nullstate +-compdef +-usereleased +-temptrans +-dependenttrans +-kepttrans +-branchstate + +# These tests give false positives, compiler typically has +# better warnings for these. +-noret +-noeffect +-usedef + -- cgit 1.2.3-korg