[PATCH 3/4] untracked_param: fix a -Wwrite-strings warning

Arka Mondal <[email protected]>
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
mark_untracked() is used as a callback so the prototype can't change.
Cast it instead.

Signed-off-by: Arka Mondal <[email protected]>
---
 smatch_untracked_param.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smatch_untracked_param.c b/smatch_untracked_param.c
index a84889ca..ed32f149 100644
--- a/smatch_untracked_param.c
+++ b/smatch_untracked_param.c
@@ -136,7 +136,7 @@ void mark_call_params_untracked(struct expression *call)
 	int i = 0;
 
 	FOR_EACH_PTR(call->args, arg) {
-		mark_untracked(call, i++, "$", NULL);
+		mark_untracked(call, i++, (char *)"$", NULL);
 	} END_FOR_EACH_PTR(arg);
 }
 
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.