From 0a5c826613bc57a4fd0741f6b7e0467451444db4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 12 Dec 2022 20:33:39 +0000 Subject: [PATCH] clang: ignore -Wunused-but-set-variable --- sys-utils/hwclock-parse-date.y | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.47.3