From 9abf88e8d6bcd12254d8da434e4935cb9fc26bc0 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 6 Jul 2023 09:17:53 +0200 Subject: [PATCH] Don't tag up gettext's *wprintf() functions gcc doesn't support -Wformat for the wide format versions of printf() and friends yet: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 Do what glibc does and have some commented out tags to show future intent. --- vncviewer/i18n.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vncviewer/i18n.h b/vncviewer/i18n.h index 0806d319..fd6c363d 100644 --- a/vncviewer/i18n.h +++ b/vncviewer/i18n.h @@ -45,11 +45,11 @@ extern int asprintf (char **, const char *, ...) #endif #if defined(__GNUC__) && defined(wprintf) extern int fwprintf (FILE *, const wchar_t *, ...) - __attribute__((__format__ (__printf__, 2, 3))); + /* __attribute__((__format__ (__wprintf__, 2, 3))) */; extern int wprintf (const wchar_t *, ...) - __attribute__((__format__ (__printf__, 1, 2))); + /* __attribute__((__format__ (__wprintf__, 1, 2))) */; extern int swprintf (wchar_t *, size_t, const wchar_t *, ...) - __attribute__((__format__ (__printf__, 3, 4))); + /* __attribute__((__format__ (__wprintf__, 3, 4))) */; #endif #define _(String) gettext (String) -- 2.39.5