diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-07 10:17:02 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-14 10:04:13 -0600 |
commit | 4536b3bb61fd2fc7b3482cdc8d03a2542cdf5d9e (patch) | |
tree | 83928b73d3bd6d9c8164a719eb85951f76f9c9dd /gdb/c-lang.c | |
parent | 7ae6857316e020467f84645ba7c1c5ec6c085bd9 (diff) | |
download | gdb-4536b3bb61fd2fc7b3482cdc8d03a2542cdf5d9e.zip gdb-4536b3bb61fd2fc7b3482cdc8d03a2542cdf5d9e.tar.gz gdb-4536b3bb61fd2fc7b3482cdc8d03a2542cdf5d9e.tar.bz2 |
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.
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions