make both gcc and clang happy with how cx_json_value_nothing is initialized

Tue, 22 Oct 2024 22:20:50 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 22 Oct 2024 22:20:50 +0200
changeset 944
c26299cc9897
parent 943
9f1eb30dbc84
child 945
84a5fab8a47c

make both gcc and clang happy with how cx_json_value_nothing is initialized

src/json.c file | annotate | diff | comparison | revisions
--- a/src/json.c	Tue Oct 22 12:23:43 2024 +0200
+++ b/src/json.c	Tue Oct 22 22:20:50 2024 +0200
@@ -39,7 +39,7 @@
 
 #define PARSER_STATES_ALLOC 32
 
-static CxJsonValue cx_json_value_nothing = {CX_JSON_NOTHING};
+static CxJsonValue cx_json_value_nothing = {.type = CX_JSON_NOTHING};
 
 
 static int token_append(CxJsonToken *token, const char *buf, size_t len) {

mercurial