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.
This commit is contained in:
parent
29a8a1885d
commit
8b87d095ac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue