From: Thomas Weißschuh Date: Mon, 12 Dec 2022 20:33:39 +0000 (+0000) Subject: clang: ignore -Wunused-but-set-variable X-Git-Tag: v2.39-rc1~372^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a5c826613bc57a4fd0741f6b7e0467451444db4;p=thirdparty%2Futil-linux.git clang: ignore -Wunused-but-set-variable --- diff --git a/sys-utils/hwclock-parse-date.y b/sys-utils/hwclock-parse-date.y index f1740a2aeb..834d8af0c9 100644 --- a/sys-utils/hwclock-parse-date.y +++ b/sys-utils/hwclock-parse-date.y @@ -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.