Fix compiler warnings with clang 16 by not using gnu_printf formatmaster
commit9cf2d1b36b7ac86b3bfa5594b59ff2c3a9713160
authorSimon McVittie <smcv@collabora.com>
Wed, 22 Nov 2023 18:06:20 +0000 (22 18:06 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 22 Nov 2023 18:06:52 +0000 (22 18:06 +0000)
tree1d6cdb9924bd7181d929b03aaeba385f480c6551
parente006a34fa354d2dcb00e0666f04c05397b1a57ec
Fix compiler warnings with clang 16 by not using gnu_printf format

clang claims to be fully gcc-compatible and therefore defines `__GNUC__`,
but it does not implement the `gnu_printf` flavour of format string
checking: so we need to fall back to plain `printf` on clang, and we
must also check for clang before gcc.

Fixes: 15bd8691 "all: use format(gnu_printf), enable in mingw"
Signed-off-by: Simon McVittie <smcv@collabora.com>
examples/gl_basic.c
src/utils/wflinfo.c
src/waffle/core/wcore_error.h
tests/functional/gl_basic_test.c