]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: suppress "-Wunused-but-set-variable" warning with "parser_bison.c"
authorThomas Haller <thaller@redhat.com>
Tue, 29 Aug 2023 12:53:36 +0000 (14:53 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Aug 2023 17:56:03 +0000 (19:56 +0200)
commit83d1a6733691d8bbb9ca1b9c195591794074337d
tree71bbd91b75f8203f99997e2e3a8f12323db46bd6
parent05acd523d1633223648d3bec35b002d5eed6fbb2
src: suppress "-Wunused-but-set-variable" warning with "parser_bison.c"

Clang warns:

    parser_bison.c:7606:9: error: variable 'nft_nerrs' set but not used [-Werror,-Wunused-but-set-variable]
        int yynerrs = 0;
            ^
    parser_bison.c:72:25: note: expanded from macro 'yynerrs'
    #define yynerrs         nft_nerrs
                            ^

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/Makefile.am