From 588a29ff2e4e9291143d837daa6b9b5f0a9fa91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 9 Oct 2019 14:20:22 +0400 Subject: util: use gnu_printf format attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dtc uses non-portable formats. Using gnu_printf attributes (for warnings) in combination with __USE_MINGW_ANSI_STDIO allows to build for win32. Signed-off-by: Marc-André Lureau Message-Id: <20191009102025.10179-8-marcandre.lureau@redhat.com> Signed-off-by: David Gibson --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index ca5cb52..347b305 100644 --- a/util.h +++ b/util.h @@ -12,7 +12,7 @@ */ #ifdef __GNUC__ -#define PRINTF(i, j) __attribute__((format (printf, i, j))) +#define PRINTF(i, j) __attribute__((format (gnu_printf, i, j))) #define NORETURN __attribute__((noreturn)) #else #define PRINTF(i, j) -- cgit v1.1