mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-03 13:43:33 +00:00
clang: don't use gnu_printf attribute
This should stop a lot of warning spam on any clang install, not just macOS/FreeBSD Signed-off-by: John Studnicka <contact@zentec.dev>
This commit is contained in:
committed by
Enrico Weigelt
parent
3ad7e030ce
commit
06467f469f
@@ -71,7 +71,7 @@ SOFTWARE.
|
||||
#endif
|
||||
|
||||
#ifndef _X_ATTRIBUTE_VPRINTF
|
||||
# if defined(__GNUC__) && (__GNUC__ >= 2) && (!defined(__APPLE__)) && (!defined(__FreeBSD__))
|
||||
# if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__clang__)
|
||||
# define _X_ATTRIBUTE_VPRINTF(fmt, firstarg) \
|
||||
__attribute__((__format__(gnu_printf, fmt, firstarg)))
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user