From: Jérôme Benoit Date: Mon, 13 Nov 2017 19:31:05 +0000 (+0100) Subject: Fix a warning on a struct initializer. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7f9d92f6d5a67e5afd2351893abc51d73f1d47d8;p=TP_AL_C.git Fix a warning on a struct initializer. Signed-off-by: Jérôme Benoit --- diff --git a/lexer/main.c b/lexer/main.c index 40ff04d..3837e9b 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -11,7 +11,7 @@ struct token_s { wint_t value[50]; }; -struct token_s token[TOKEN_MAX] = {NULL, 0}; +struct token_s token[TOKEN_MAX] = {{NULL, {0}}}; FILE *source = NULL, *target = NULL; wint_t c;