From: Dan Carpenter Date: Tue, 15 Jan 2013 14:09:23 +0000 (+0300) Subject: validation: update a couple scripts with missing break statements X-Git-Tag: 1.57~54 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/9ed5790e7527c629003124eebf17085ed2dbf370 validation: update a couple scripts with missing break statements Signed-off-by: Dan Carpenter --- 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