Fix a new warning on Cygwin
authorJon Turney <jon.turney@dronecode.org.uk>
Sat, 21 May 2022 10:18:55 +0000 (11:18 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 2 Jun 2022 09:39:49 +0000 (10:39 +0100)
commita7790128481894630414213603d3e894d764f802
tree2d3e6749a62e9ca8120715adb43abbf33262cd58
parenta115c6d62e9f367dcf319a349ce452ec6518b667
Fix a new warning on Cygwin

> ../../gdb/windows-nat.c: In function ‘windows_solib* windows_make_so(const char*, LPVOID)’:
> ../../gdb/windows-nat.c:714:12: error: declaration of ‘char name [512]’ shadows a parameter [-Werror=shadow=compatible-local]
>   714 |       char name[SO_NAME_MAX_PATH_SIZE];
>       |            ^~~~
> ../../gdb/windows-nat.c:655:30: note: shadowed declaration is here
>   655 | windows_make_so (const char *name, LPVOID load_addr)
>       |                  ~~~~~~~~~~~~^~~~
gdb/windows-nat.c