[PATCH firmware-utils 3/4] uimage_sgehdr: drop unused "ltmp" variable

Rafał Miłecki zajec5 at gmail.com
Thu Feb 22 22:18:38 PST 2024


From: Rafał Miłecki <rafal at milecki.pl>

This fixes:

src/uimage_sgehdr.c: In function ‘main’:
src/uimage_sgehdr.c:76:6: warning: unused variable ‘ltmp’ [-Wunused-variable]
  int ltmp;
      ^~~~

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 src/uimage_sgehdr.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/uimage_sgehdr.c b/src/uimage_sgehdr.c
index 6d62c04..c15243e 100644
--- a/src/uimage_sgehdr.c
+++ b/src/uimage_sgehdr.c
@@ -73,7 +73,6 @@ int main(int argc, char *argv[])
 	char *hversion = NULL;
 	char *sversion = NULL;
 	int padsz = IH_PAD_BYTES;
-	int ltmp;
 
 	while ((opt = getopt(argc, argv, "i:o:m:h:s:")) != -1) {
 		switch (opt) {
-- 
2.35.3




More information about the openwrt-devel mailing list