mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
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.
This commit is contained in:
parent
b783d068d9
commit
047fa8cc1c
3 changed files with 2223 additions and 1558 deletions
1
sim/configure
vendored
1
sim/configure
vendored
|
|
@ -16561,7 +16561,6 @@ build_warnings="$build_warnings
|
|||
-Wno-enum-conversion
|
||||
"
|
||||
build_build_warnings="
|
||||
-Wno-missing-braces
|
||||
-Wno-stringop-truncation
|
||||
-Wno-implicit-fallthrough
|
||||
-Wno-shadow=local
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
3778
sim/sh/gencode.c
3778
sim/sh/gencode.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue