From: Marc-André Lureau <marcandre.lur...@redhat.com> Silence the clang warning when building the code with default clang, outside of QEMU.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- qobject/json-lexer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qobject/json-lexer.c b/qobject/json-lexer.c index 632320d72d5d..955ce0ff2a53 100644 --- a/qobject/json-lexer.c +++ b/qobject/json-lexer.c @@ -128,6 +128,8 @@ QEMU_BUILD_BUG_ON(IN_START_INTERP != IN_START + 1); #define LOOKAHEAD 0x80 #define TERMINAL(state) [0 ... 0xFF] = ((state) | LOOKAHEAD) +QEMU_BEGIN_IGNORE_INITIALIZER_OVERRIDES + static const uint8_t json_lexer[][256] = { /* Relies on default initialization to IN_ERROR! */ @@ -261,6 +263,8 @@ static const uint8_t json_lexer[][256] = { [IN_START_INTERP]['%'] = IN_INTERP, }; +QEMU_END_IGNORE_INITIALIZER_OVERRIDES + static inline uint8_t next_state(JSONLexer *lexer, char ch, bool flush, bool *char_consumed) { -- 2.36.0.44.g0f828332d5ac