X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdbsupport%2Fgdb_optional.h;h=e79ba2c52e61832c60cbd38ec2bf2f13d6014060;hb=f1cee837665a932d3d747597d8512cd0d3650478;hp=02a87f6ee484ed0de64193d089ff979d7b66349d;hpb=01027315f54048dbaf03ac37455c2528c72a6d9b;p=binutils-gdb.git diff --git a/gdbsupport/gdb_optional.h b/gdbsupport/gdb_optional.h index 02a87f6ee48..e79ba2c52e6 100644 --- a/gdbsupport/gdb_optional.h +++ b/gdbsupport/gdb_optional.h @@ -1,6 +1,6 @@ /* An optional object. - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. This file is part of GDB. @@ -208,6 +208,8 @@ private: { struct { } m_dummy; T m_item; + volatile char dont_use; /* Silences -Wmaybe-uninitialized warning, see + PR gcc/80635. */ }; /* True if the object was ever emplaced. */