diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-03-02 15:22:11 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-03-02 15:22:11 +0200 |
commit | a6a4b2c636b29de09dea890b448f99804ef7bc18 (patch) | |
tree | 26d0325ebc66282bd6316f3d103cc378dd6bd024 /gdb/xml-syscall.c | |
parent | 742a7df5f4a149f0818aaccfc432c4c0c9a6e26d (diff) | |
download | gdb-a6a4b2c636b29de09dea890b448f99804ef7bc18.zip gdb-a6a4b2c636b29de09dea890b448f99804ef7bc18.tar.gz gdb-a6a4b2c636b29de09dea890b448f99804ef7bc18.tar.bz2 |
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.
Diffstat (limited to 'gdb/xml-syscall.c')
-rw-r--r-- | gdb/xml-syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index 6d13b0b..d144f82 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -472,7 +472,7 @@ xml_list_syscalls_by_group (struct gdbarch *gdbarch, const char *group, if (groupdesc == NULL) return false; - for (const struct syscall_desc *sysdesc : groupdesc->syscalls) + for (const syscall_desc *sysdesc : groupdesc->syscalls) syscalls->push_back (sysdesc->number); return true; |