From 890697a63c256621aa83f5e7b3354262489d3f82 Mon Sep 17 00:00:00 2001 From: Michael Mikonos <127171689+mknos@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:48:16 +0800 Subject: [PATCH 1/2] unused variable: found --- src/sprintf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sprintf.c b/src/sprintf.c index 563daf89450..9c6b2ba95fa 100644 --- a/src/sprintf.c +++ b/src/sprintf.c @@ -3091,7 +3091,6 @@ void f___handle_sprintf_format(INT32 args) { struct pike_string *attr; struct mapping *state; - int found = 0; #if 0 fprintf(stderr, "f___handle_sprintf_format(%d)\n", args); From 10335067d40bae8cc0d5d2a46ddaa391ede412d5 Mon Sep 17 00:00:00 2001 From: Michael Mikonos <127171689+mknos@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:51:08 +0800 Subject: [PATCH 2/2] unused variables: res & res --- src/program.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/program.c b/src/program.c index 2b17527c2dc..0f0b4c310ce 100644 --- a/src/program.c +++ b/src/program.c @@ -8868,7 +8868,7 @@ int store_prog_string(struct pike_string *str) return Pike_compiler->new_program->num_strings-1; } -/* NOTE: O(n²)! */ +/* NOTE: O(n²)! */ int store_constant(const struct svalue *foo, int equal, struct pike_string *UNUSED(constant_name)) @@ -11365,7 +11365,6 @@ void yyexplain_not_compatible(int severity_level, struct program *a, struct program *b) { int e; - int res = 1; int swapped = 0; INT_TYPE a_line = 0; INT_TYPE b_line = 0; @@ -11567,7 +11566,6 @@ void string_builder_explain_not_compatible(struct string_builder *s, struct program *b) { int e; - int res = 1; DECLARE_CYCLIC(); /* Optimize the loop somewhat */ @@ -11620,7 +11618,6 @@ void string_builder_explain_not_compatible(struct string_builder *s, } } END_CYCLIC(); - return; } /* FIXME: code duplication of yyexplain_not_implements() above! */