diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/util/rust-optional.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-optional.h b/gcc/rust/util/rust-optional.h index d3dfb7f..bdfbd28 100644 --- a/gcc/rust/util/rust-optional.h +++ b/gcc/rust/util/rust-optional.h @@ -86,6 +86,10 @@ private: union { T value; + // prevents initialization warnings + // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635#c53 + // FIXME: remove + volatile char unused; }; Optional (tag_some, const T &value) : field_is_some (true), value (value) {} |