unwind: only enable with --spammy
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Oct 2012 08:41:44 +0000 (27 11:41 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Oct 2012 08:41:44 +0000 (27 11:41 +0300)
These have too many false positives.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_unwind.c
validation/sm_equiv4.c

index 11b901f..9bfadc5 100644 (file)
@@ -170,7 +170,7 @@ static void release_function_indicator(const char *name)
 
 void check_unwind(int id)
 {
-       if (option_project != PROJ_KERNEL)
+       if (option_project != PROJ_KERNEL || !option_spammy)
                return;
        my_id = id;
 
index 43b2828..c73baac 100644 (file)
@@ -14,7 +14,7 @@ int func(void)
 }
 /*
  * check-name: smatch equivalent variables #4
- * check-command: smatch -p=kernel -I.. sm_equiv4.c
+ * check-command: smatch -p=kernel --spammy -I.. sm_equiv4.c
  *
  * check-output-start
 sm_equiv4.c:13 func() warn: 'b' was not released on error