From: Paul Eggert Date: Tue, 24 Jan 2023 23:18:55 +0000 (-0800) Subject: Pacify Apple clang version 13.0.0 (clang-1300.0.29.30): X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b87d095acfb23b527f955873a59dd9c13ffc9b4;p=emacs.git Pacify Apple clang version 13.0.0 (clang-1300.0.29.30): * 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. --- 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