]> andersk Git - splint.git/blobdiff - test/preds.expect
Fixes for win32
[splint.git] / test / preds.expect
index 68a31a2bbd0a9d6a63cf24c4de10cfe15c0ae1b3..a1f1576f7a1461e65107721b141b8d5626a86c65 100644 (file)
@@ -16,8 +16,8 @@ preds.c:25:7: Test expression for if not bool, type char: (c = 'a')
 preds.c:30:7: Use of == with bool variables (risks inconsistency because of
                  multiple true values): b1 == b2
   Two bool values are compared directly using a C primitive. This may produce
-  unexpected results since all non-zero values are considered TRUE, so
-  different TRUE values may not be equal. The file bool.h (included in
+  unexpected results since all non-zero values are considered true, so
+  different true values may not be equal. The file bool.h (included in
   splint/lib) provides bool_equal for safe bool comparisons. (Use -boolcompare
   to inhibit warning)
 preds.c:35:7: Test expression for if not bool, type char: c
@@ -33,6 +33,10 @@ preds.c:20:7: Test expression for if is assignment expression: b1 = b2
 
 Finished checking --- 1 code warning, as expected
 
+bool.h:11:25: Constant exported, but not specified: FALSE
+  A constant is exported, but not specified. (Use -exportconst to inhibit
+  warning)
+bool.h:16:25: Constant exported, but not specified: TRUE
 preds.c: (in function f)
 preds.c:5:8: Operand of ! is non-boolean (int *): !p
   The operand of ! operator is a pointer. (Use +ptrnegate to inhibit warning)
@@ -52,18 +56,14 @@ preds.c:25:7: Test expression for if not bool, type char: (c = 'a')
 preds.c:30:7: Use of == with bool variables (risks inconsistency because of
                  multiple true values): b1 == b2
   Two bool values are compared directly using a C primitive. This may produce
-  unexpected results since all non-zero values are considered TRUE, so
-  different TRUE values may not be equal. The file bool.h (included in
+  unexpected results since all non-zero values are considered true, so
+  different true values may not be equal. The file bool.h (included in
   splint/lib) provides bool_equal for safe bool comparisons. (Use -boolcompare
   to inhibit warning)
 preds.c:35:7: Test expression for if not bool, type char: c
-bool.h:21:13: Function bool_initMod declared but not used
+preds.c:3:5: Function f declared but not used
   A function is declared but not used. Use /*@unused@*/ in front of function
   header to suppress message. (Use -fcnuse to inhibit warning)
-bool.h:24:29: Function bool_unparse declared but not used
-bool.h:27:13: Function bool_not declared but not used
-bool.h:30:13: Function bool_equal declared but not used
-preds.c:3:5: Function f declared but not used
    preds.c:41:1: Definition of f
 
-Finished checking --- 12 code warnings, as expected
+Finished checking --- 10 code warnings, as expected
This page took 0.456257 seconds and 4 git commands to generate.