Browse Source

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.
pull/1645/head
Pierre Ossman 9 months ago
parent
commit
9abf88e8d6
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      vncviewer/i18n.h

+ 3
- 3
vncviewer/i18n.h View File

@@ -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)

Loading…
Cancel
Save