]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
clang: ignore -Wunused-but-set-variable
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 12 Dec 2022 20:33:39 +0000 (20:33 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 12 Dec 2022 21:02:52 +0000 (21:02 +0000)
sys-utils/hwclock-parse-date.y

index f1740a2aeb3dd71cb7b26a52d33b168f97146757..834d8af0c9c88be43ff0c4ec843ff4afdaea4141 100644 (file)
  * 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.