# HG changeset patch # User Mike Becker # Date 1729628450 -7200 # Node ID c26299cc9897f460c9b3c98d9a67ab574be2f308 # Parent 9f1eb30dbc84c0e7e08f633e70487df6a54fdb3f make both gcc and clang happy with how cx_json_value_nothing is initialized diff -r 9f1eb30dbc84 -r c26299cc9897 src/json.c --- 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) {