diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-21 10:27:48 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-21 10:27:49 -0400 |
commit | f24ff6e9b5adc7983c3ad7cf28375eb49921b3ed (patch) | |
tree | 7b73ca50f91f77bf90782192ac368aec095e88f7 /opcodes/csky-opc.h | |
parent | a767a1c4d3c7c5dd2f32cc106a21c1e01eddebcc (diff) | |
download | gdb-f24ff6e9b5adc7983c3ad7cf28375eb49921b3ed.zip gdb-f24ff6e9b5adc7983c3ad7cf28375eb49921b3ed.tar.gz gdb-f24ff6e9b5adc7983c3ad7cf28375eb49921b3ed.tar.bz2 |
csky-opc.h: Initialize fields of last array elements
clang gives these errors:
In file included from /Users/simark/src/binutils-gdb/opcodes/csky-dis.c:30:
/Users/simark/src/binutils-gdb/opcodes/csky-opc.h:2330:8: error: missing field 'transfer' initializer [-Werror,-Wmissing-field-initializers]
{NULL}
^
/Users/simark/src/binutils-gdb/opcodes/csky-opc.h:8126:10: error: missing field 'transfer' initializer [-Werror,-Wmissing-field-initializers]
{NULL}
^
They go away when we Initialize all fields. I noticed there used to be some
files built with -Wno-missing-field-initializers, but it's not the case
anymore, since commit e7ae278d0474ab84ba3b1ee932a19e83616ddacc. There is still
a NO_WMISSING_FIELD_INITIALIZERS variable defined in the Makefile, but it's
unused, so I removed it to avoid further confusion.
opcodes/ChangeLog:
* Makefile.am: Remove NO_WMISSING_FIELD_INITIALIZERS.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
* configure.ac: Remove check for -Wno-missing-field-initializers.
* csky-opc.h (csky_v1_opcodes): Initialize all fields of last element.
(csky_v2_opcodes): Likewise.
Diffstat (limited to 'opcodes/csky-opc.h')
-rw-r--r-- | opcodes/csky-opc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/csky-opc.h b/opcodes/csky-opc.h index e31378c..d2da3e5 100644 --- a/opcodes/csky-opc.h +++ b/opcodes/csky-opc.h @@ -2327,7 +2327,7 @@ const struct csky_opcode csky_v1_opcodes[] = (NONE, FEREG, OPRND_SHIFT_0_BIT)), CSKY_ISA_FLOAT_E1, v1_work_fpu_readd), - {NULL} + {NULL, 0, {}, {}, 0, 0, 0, 0, 0, NULL} }; #undef _TRANSFER @@ -8123,5 +8123,5 @@ const struct csky_opcode csky_v2_opcodes[] = OPCODE_INFO1 (0xc4007c40, (0_4or16_20, DUP_AREG, OPRND_SHIFT_0_BIT)), CSKYV2_ISA_1E2), - {NULL} + {NULL, 0, {}, {}, 0, 0, 0, 0, 0, NULL} }; |