]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mkhelp: rename variable to fix compiler warnings
authorViktor Szakats <commit@vsz.me>
Thu, 7 Mar 2024 09:25:39 +0000 (09:25 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 7 Mar 2024 19:03:30 +0000 (19:03 +0000)
```
src\tool_operate.c(541,33): warning C4459: declaration of 'm' hides global declaration [_bld\src\curl.vcxproj]
  _bld\src\tool_hugehelp.c(8,27):
  see declaration of 'm'
src\tool_paramhlp.c(307,14): warning C4459: declaration of 'm' hides global declaration [_bld\src\curl.vcxproj]
src\tool_progress.c(118,16): warning C4459: declaration of 'm' hides global declaration [_bld\src\curl.vcxproj]
src\tool_writeout.c(288,31): warning C4459: declaration of 'm' hides global declaration [_bld\src\curl.vcxproj]
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/49348159/job/51ee75cd2n0wj6lc#L614

Reviewed-by: Daniel Stenberg
Closes #13077

src/mkhelp.pl

index f1e1de1c6650e940e1480ee8173e5afa93005c33..52b6e13e344b83e4425795f689c15da6e7dbc65d 100755 (executable)
@@ -157,7 +157,7 @@ exit;
 }
 else {
     print <<HEAD
-static const char * const m[] = {
+static const char * const curlman[] = {
 HEAD
         ;
 }
@@ -184,8 +184,8 @@ print <<ENDLINE
 void hugehelp(void)
 {
   int i = 0;
-  while(m[i])
-    puts(m[i++]);
+  while(curlman[i])
+    puts(curlman[i++]);
 }
 ENDLINE
     ;