public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gcc warning with "some variable may be used uninitialized in this function [-Wmaybe-uninitialized]" when building under msys
@ 2018-10-04  6:28 asmwarrior
  2018-10-04 12:01 ` Simon Marchi
  0 siblings, 1 reply; 10+ messages in thread
From: asmwarrior @ 2018-10-04  6:28 UTC (permalink / raw)
  To: GDB Development

Hi, when building gdb git head(which is 875e539851bb2702f3292f819e220545a8776242 as 2018-10-04) under msys+gcc 5.4, I see such warning:

  CXX    infrun.o
In file included from ../../binutils-gdb/gdb/inferior.h:49:0,
                 from ../../binutils-gdb/gdb/infrun.c:26:
../../binutils-gdb/gdb/progspace.h: In function 'void handle_vfork_child_exec_or_exit(int)':
../../binutils-gdb/gdb/progspace.h:285:47: warning: '*((void*)(& maybe_restore_inferior)+16).scoped_restore_current_program_space::m_saved_pspace' may be used uninitialized in this function [-Wmaybe-uninitialized]
   { set_current_program_space (m_saved_pspace); }
                                               ^
../../binutils-gdb/gdb/infrun.c:931:6: note: '*((void*)(& maybe_restore_inferior)+16).scoped_restore_current_program_space::m_saved_pspace' was declared here
      maybe_restore_inferior;
      ^
  CXX    inline-frame.o

Hope you devs can fix this. Thanks.

Asmwarrior

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-10-09 20:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04  6:28 gcc warning with "some variable may be used uninitialized in this function [-Wmaybe-uninitialized]" when building under msys asmwarrior
2018-10-04 12:01 ` Simon Marchi
2018-10-04 12:40   ` Pedro Alves
2018-10-05  5:08     ` Tom Tromey
2018-10-09 10:34       ` Pedro Alves
2018-10-09 19:34         ` Tom Tromey
2018-10-09 19:54           ` Pedro Alves
2018-10-09 20:01             ` Pedro Alves
2018-10-09 20:04             ` Tom Tromey
2018-10-04 12:41   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).