From: Florian Westphal Date: Thu, 18 Mar 2021 16:31:30 +0000 (+0100) Subject: scanner: avoid -fasan heap overflow warnings X-Git-Tag: v0.9.9~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b44fa0685a2c2eae4ed42a750b650a90491d14d;p=thirdparty%2Fnftables.git scanner: avoid -fasan heap overflow warnings Reported-by: Pablo Neira Ayuso Signed-off-by: Florian Westphal --- diff --git a/src/scanner.l b/src/scanner.l index a73ce1b8..c139c01f 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1022,6 +1022,6 @@ static void scanner_push_start_cond(void *scanner, enum startcond_type type) void scanner_pop_start_cond(void *scanner, enum startcond_type t) { - yy_pop_state(scanner); (void)yy_top_state(scanner); /* suppress gcc warning wrt. unused function */ + yy_pop_state(scanner); }