summaryrefslogtreecommitdiff
path: root/warnings.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2021-11-02 17:19:10 -0700
committerJames Zern <jzern@google.com>2021-11-02 17:21:56 -0700
commitdd10ac8f69c1bc77fc69cd10de51092d07fbebb5 (patch)
tree8f1e0caf276c856beefbbfbaa4ba296b5b51b84b /warnings.c
parent340f60524ffa35c7324c54fe404d84cc1a1ac402 (diff)
downloadlibvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar.gz
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar.bz2
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.zip
tools_common.h: add VPX_TOOLS_FORMAT_PRINTF
and use it to set the format attribute for printf like functions. this allows the examples to be built with -Wformat-nonliteral without producing warnings. Bug: webm:1744 Change-Id: I26b4c41c9a42790053b1ae0e4a678af8f2cd1d82 Fixed: webm:1744
Diffstat (limited to 'warnings.c')
-rw-r--r--warnings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/warnings.c b/warnings.c
index a80da527f..3e6e70253 100644
--- a/warnings.c
+++ b/warnings.c
@@ -98,7 +98,7 @@ void check_encoder_config(int disable_prompt,
/* Count and print warnings. */
for (warning = warning_list.warning_node; warning != NULL;
warning = warning->next_warning, ++num_warnings) {
- warn(warning->warning_string);
+ warn("%s", warning->warning_string);
}
free_warning_list(&warning_list);