[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/16] qobject/json-lexer: disable -Winitializer-overrides warnin
From: |
marcandre . lureau |
Subject: |
[PATCH 05/16] qobject/json-lexer: disable -Winitializer-overrides warnings |
Date: |
Wed, 4 May 2022 21:30:14 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Silence the clang warning when building the code with default clang,
outside of QEMU.
Signed-off-by: Marc-André Lureau <marcandre.lureau@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
- [PATCH 00/16] Misc cleanups, marcandre . lureau, 2022/05/04
- [PATCH 01/16] include: move qemu_*_exec_dir() to cutils, marcandre . lureau, 2022/05/04
- [PATCH 02/16] util/win32: simplify qemu_get_local_state_dir(), marcandre . lureau, 2022/05/04
- [PATCH 03/16] tests: make libqmp buildable for win32, marcandre . lureau, 2022/05/04
- [PATCH 04/16] compiler.h: add QEMU_{BEGIN, END}_IGNORE_INITIALIZER_OVERRIDES, marcandre . lureau, 2022/05/04
- [PATCH 05/16] qobject/json-lexer: disable -Winitializer-overrides warnings,
marcandre . lureau <=
- [PATCH 06/16] include: adjust header guards after renaming, marcandre . lureau, 2022/05/04
- [PATCH 08/16] osdep: export qemu_open_cloexec(), marcandre . lureau, 2022/05/04
- [PATCH 07/16] qga: flatten safe_open_or_create(), marcandre . lureau, 2022/05/04
- [PATCH 09/16] qga: use qemu_open_cloexec() for safe_open_or_create(), marcandre . lureau, 2022/05/04
- [PATCH 10/16] qapi/error: add g_autoptr(Error) support, marcandre . lureau, 2022/05/04
- [PATCH 11/16] qga: replace qemu_open_old() with qemu_open_cloexec(), marcandre . lureau, 2022/05/04
- [PATCH 12/16] test/qga: use G_TEST_DIR to locate os-release test file, marcandre . lureau, 2022/05/04
- [PATCH 13/16] qga/wixl: prefer variables over environment, marcandre . lureau, 2022/05/04