Tue, 22 Oct 2024 22:20:50 +0200
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) {