clang: ignore -Wunused-but-set-variable

This commit is contained in:
Thomas Weißschuh 2022-12-12 20:33:39 +00:00
parent 9df5ac3449
commit 0a5c826613

View file

@ -34,6 +34,13 @@
* TZ strings in dates.
*/
#ifdef __clang__
/* clang 15 detects yynerrs as unused.
* Will be fixed in future versions of bison.
*/
#pragma clang diagnostic ignored "-Wunused-but-set-variable"
#endif
/**
* FIXME: Check for arithmetic overflow in all cases, not just
* some of them.