History

_Static_assert must be followed by semicolon

as per the C11 grammar.

Michael Matz committed 7 years ago

Commit d30bc6d1 parent e3716422 files · +3 −2Browse files

Unified · Split

2 files
  1. tccgen.c +1 −0
  2. tests/tests2/60_errors_and_warnings.c +2 −2
tccgen.c+1−0
@@ -7456,6 +7456,7 @@ static int decl0(int l, int is_for_loop_init, Sym *func_sym) · 7455 unmodified lines
74567456 tcc_error("%s", get_tok_str(tok, &tokc));
74577457 next();
74587458 skip(')');
7459+ skip(';');
74597460 continue;
74607461 }
74617462 if (!parse_btype(&btype, &adbase)) {
tests/tests2/60_errors_and_warnings.c+2−2
@@ -179,7 +179,7 @@ void * _Alignas(16) p1; · 178 unmodified lines
179179 #elif defined test_static_assert
180180
181181 #define ONE 0
182− _Static_assert(ONE == 0, "don't show me this")
183− _Static_assert(ONE == 1, "ONE is not 1")
182+ _Static_assert(ONE == 0, "don't show me this");
183+ _Static_assert(ONE == 1, "ONE is not 1");
184184
185185 #endif