瀏覽代碼

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 月之前
父節點
當前提交
9abf88e8d6
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      vncviewer/i18n.h

+ 3
- 3
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)

Loading…
取消
儲存