From 9ed5790e7527c629003124eebf17085ed2dbf370 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 15 Jan 2013 17:09:23 +0300 Subject: [PATCH] validation: update a couple scripts with missing break statements Signed-off-by: Dan Carpenter --- validation/sm_switch.c | 1 + validation/sm_switch2.c | 1 + 2 files changed, 2 insertions(+) diff --git a/validation/sm_switch.c b/validation/sm_switch.c index 37bf2cba..e267d32d 100644 --- a/validation/sm_switch.c +++ b/validation/sm_switch.c @@ -52,6 +52,7 @@ void func (void) * check-known-to-fail * * check-output-start +sm_switch.c:38 func() warn: missing break? reassigning 'a->a' sm_switch.c:38 func() error: potential NULL dereference 'a'. sm_switch.c:39 func() error: potential NULL dereference 'b'. * check-output-end diff --git a/validation/sm_switch2.c b/validation/sm_switch2.c index 953e2702..92ba4ef3 100644 --- a/validation/sm_switch2.c +++ b/validation/sm_switch2.c @@ -44,6 +44,7 @@ void func (void) * check-command: smatch sm_switch2.c * * check-output-start +sm_switch2.c:31 func() warn: missing break? reassigning 'a->a' sm_switch2.c:31 func() error: potential NULL dereference 'a'. sm_switch2.c:32 func() error: potential NULL dereference 'b'. * check-output-end -- 2.11.4.GIT