diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-23 03:09:43 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-23 03:15:02 -0500 |
commit | 047fa8cc1cc534f19428b18d3d0c50e8139d3335 (patch) | |
tree | 7ff63176b9b40bb8a66c25b09458b958b9ad9532 /sim/m4 | |
parent | b783d068d969b5422ce60ecc6968a1a35ee92a7e (diff) | |
download | gdb-047fa8cc1cc534f19428b18d3d0c50e8139d3335.zip gdb-047fa8cc1cc534f19428b18d3d0c50e8139d3335.tar.gz gdb-047fa8cc1cc534f19428b18d3d0c50e8139d3335.tar.bz2 |
sim: sh: fix nested braces in struct init
The op struct includes an array of strings, but doesn't use braces
around that array when initializing. This causes a ton of warnings
when using -Wmissing-braces. Add them to fix.
The code this tool generates is the same before & after.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index fcbcca9..98457b8 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -77,8 +77,6 @@ dnl Disable until we can figure out how to make this work. -Wno-enum-conversion " build_build_warnings=" -dnl TODO Fix the sh/gencode.c which triggers a ton of these warnings. --Wno-missing-braces dnl TODO Figure out the igen code that triggers warnings w/FORTIFY_SOURCE. -Wno-stringop-truncation dnl Fixing this requires ATTRIBUTE_FALLTHROUGH support at build time, but we |