From 8b87d095acfb23b527f955873a59dd9c13ffc9b4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 24 Jan 2023 15:18:55 -0800 Subject: [PATCH] Pacify Apple clang version 13.0.0 (clang-1300.0.29.30): MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/coding.c: When compiling with Apple clang, ignore -Wunused-but-set-variable only in Clang 14 and greater. Problem reported by Mattias Engdegård. --- src/coding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coding.c b/src/coding.c index 79461addd1a..a2e0d7040f8 100644 --- a/src/coding.c +++ b/src/coding.c @@ -653,7 +653,7 @@ growable_destination (struct coding_system *coding) /* Suppress clang warnings about consumed_chars never being used. Although correct, the warnings are too much trouble to code around. */ -#if 13 <= __clang_major__ +#if 13 <= __clang_major__ - defined __apple_build_version__ # pragma clang diagnostic ignored "-Wunused-but-set-variable" #endif -- 2.39.5