Ver código fonte

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 10 meses atrás
pai
commit
9abf88e8d6
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      vncviewer/i18n.h

+ 3
- 3
vncviewer/i18n.h Ver arquivo

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

Carregando…
Cancelar
Salvar