[PATCH v2] secprof: Move labels out of the end of a compound statement

Jouni Malinen j at w1.fi
Sun Nov 15 07:23:02 PST 2026


On Thu, Oct 29, 2026 at 03:25:32PM +0200, Andrei Otcheretianski wrote:
> A label must be followed by a statement in C17 and older. GCC accepts a
> label at the end of a block as an extension, but clang rejects it with
> "error: expected statement" and the build fails:
> 
>   bss.c:1807:2: error: expected statement
> 
> Move the no_sp_match and no_valid_sp labels after the closing brace of
> the block instead, so that they are followed by the next statement.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list