forked from pool/smatch
OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/smatch?expand=0&rev=25
28 lines
616 B
Diff
28 lines
616 B
Diff
From: Jiri Slaby <jslaby@suse.cz>
|
|
Date: Mon, 9 May 2022 10:51:08 +0200
|
|
Subject: check_free: declare is_percent_p_print before use
|
|
Patch-mainline: no
|
|
References: warnings fix
|
|
|
|
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
|
|
---
|
|
check_free.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/check_free.c b/check_free.c
|
|
index ec3202ab..20fbc44f 100644
|
|
--- a/check_free.c
|
|
+++ b/check_free.c
|
|
@@ -52,6 +52,8 @@ static int is_freed(struct expression *expr)
|
|
return 0;
|
|
}
|
|
|
|
+bool is_percent_p_print(struct expression *expr);
|
|
+
|
|
static void match_symbol(struct expression *expr)
|
|
{
|
|
struct expression *parent;
|
|
--
|
|
2.34.1
|
|
|