]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify Apple clang version 13.0.0 (clang-1300.0.29.30):
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Jan 2023 23:18:55 +0000 (15:18 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Jan 2023 23:19:24 +0000 (15:19 -0800)
* 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

index 79461addd1a794308aaaaf022704acbdfe656f73..a2e0d7040f837da3462117fa47f59dcf674873a2 100644 (file)
@@ -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