mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
Avoid compilation warnings on MinGW.
gdb/ChangeLog: 2019-03-02 Eli Zaretskii <eliz@gnu.org> * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from for-loop range, to avoid compiler warnings. * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to avoid compiler warnings about unused variables.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
2019-03-02 Eli Zaretskii <eliz@gnu.org>
|
2019-03-02 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
|
||||||
|
for-loop range, to avoid compiler warnings.
|
||||||
|
|
||||||
|
* tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
|
||||||
|
avoid compiler warnings about unused variables.
|
||||||
|
|
||||||
* NEWS: Mention end of support for native debugging on MS-Windows
|
* NEWS: Mention end of support for native debugging on MS-Windows
|
||||||
before XP.
|
before XP.
|
||||||
|
|
||||||
|
@ -410,7 +410,9 @@ tui_enable (void)
|
|||||||
{
|
{
|
||||||
WINDOW *w;
|
WINDOW *w;
|
||||||
SCREEN *s;
|
SCREEN *s;
|
||||||
const char *cap;
|
#ifndef __MINGW32__
|
||||||
|
const char *cap;
|
||||||
|
#endif
|
||||||
const char *interp;
|
const char *interp;
|
||||||
|
|
||||||
/* If the top level interpreter is not the console/tui (e.g.,
|
/* If the top level interpreter is not the console/tui (e.g.,
|
||||||
|
@ -472,7 +472,7 @@ xml_list_syscalls_by_group (struct gdbarch *gdbarch, const char *group,
|
|||||||
if (groupdesc == NULL)
|
if (groupdesc == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (const struct syscall_desc *sysdesc : groupdesc->syscalls)
|
for (const syscall_desc *sysdesc : groupdesc->syscalls)
|
||||||
syscalls->push_back (sysdesc->number);
|
syscalls->push_back (sysdesc->number);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user