binutils-gdb/gdb/target
Tom Tromey 4536b3bb61 Silence -Wmaybe-uninitialized warning from target_waitstatus
Currently, one use of target_waitstatus yields a warning:

     target/waitstatus.h: In function 'void stop_all_threads()':
     target/waitstatus.h:175:13: warning: 'ws.target_waitstatus::m_value' may be used uninitialized in this function [-Wmaybe-uninitialized]
       175 |     m_value = other.m_value;
	   |     ~~~~~~~~^~~~~~~~~~~~~~~

This patch silences the warning.  I tried the "volatile member"
approach that was used for gdb::optional, but that didn't work, so
this patch simply initializes the member.
2022-04-14 10:04:13 -06:00
..
resume.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
target.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
wait.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
waitstatus.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
waitstatus.h Silence -Wmaybe-uninitialized warning from target_waitstatus 2022-04-14 10:04:13 -06:00