uninitialized: silence false postives warnings about "(void)foo;"
commit5e4a760f0d44951079a21a460cc9202b31a7fc8b
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Aug 2021 10:01:51 +0000 (10 13:01 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Aug 2021 10:01:51 +0000 (10 13:01 +0300)
treea73b755234eada0d727cc30d73c7e87439376929
parent3b20f9f921b9f2d1c4cbc1c4e8595db8cfb386f1
uninitialized: silence false postives warnings about "(void)foo;"

Sometimes code does:

(void)foo;

Which is a no-op statement to silence the GCC warnings about unused
variables.  But Smatch was complaining that "foo" was uninitialized.
Check for that as a special case and silence the warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_uninitialized.c