Status: Unconfirmed
Owner: ----
New issue 1744 by ddkil...@
apple.com: libvpx should compile with -Wformat-nonliteral
https://bugs.chromium.org/p/webm/issues/detail?id=1744libvpx should compile with -Wformat-nonliteral.
The only issue to fix (in the copy included in WebKit's source repository) is that `vpx_internal_error()` in `vpx/internal/vpx_codec_internal.h` needs to have a printf format attribute added to the function declaration similar to this:
```
#if defined(__clang__) || (defined(__GNUC__) && defined(__has_attribute))
#if __has_attribute(format)
#define LIBVPX_FORMAT_PRINTF(fmt, args) __attribute__((format(__printf__, fmt, args)))
#else
#define LIBVPX_FORMAT_PRINTF(fmt, args)
#endif
#else
#define LIBVPX_FORMAT_PRINTF(fmt, args)
#endif
void vpx_internal_error(struct vpx_internal_error_info *info,
vpx_codec_err_t error, const char *fmt,
...) LIBVPX_FORMAT_PRINTF(3, 4) CLANG_ANALYZER_NORETURN;
```
See the patch attached to:
WebKit Bug 232335: [WebRTC] Enable -Wformat=2 warnings
<
https://bugs.webkit.org/show_bug.cgi?id=232335>
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings