]> git.ipfire.org Git - thirdparty/strongswan.git/commit
Suppress compiler warnings with specific bison and compiler combinations
authorTobias Brunner <tobias@strongswan.org>
Wed, 10 Jan 2024 17:04:32 +0000 (18:04 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Jan 2024 10:00:29 +0000 (11:00 +0100)
commit67f09905305c93620f552b8f9084b5df40e920cf
treedf3703244fe461d1975300ada7753b5e803eadeb
parent22fc539edd2ddaa9521c6e370d5cc423c32352f5
Suppress compiler warnings with specific bison and compiler combinations

Bison generates code that only increases the yynerrs counter, it's never
read.  This causes a warning in newer compilers (in particular clang).
Newer versions of bison mark yynerrs with __attribute__((unused)), but
at least on FreeBSD 14 that's not yet available.
src/libstrongswan/settings/settings_parser.y
src/starter/parser/parser.y