diff options
author | Ben Smith <binji@chromium.org> | 2016-04-28 20:33:06 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-28 20:35:52 -0700 |
commit | 8ef2f014f80ad118c901db4c65d4feb0baf878da (patch) | |
tree | d5217568ca923468474e5600467ef0a191d4ab74 /src/wasm-option-parser.c | |
parent | 310ab15d442195fdee0ce0de20ff79ab054c19d6 (diff) | |
download | wabt-8ef2f014f80ad118c901db4c65d4feb0baf878da.tar.gz wabt-8ef2f014f80ad118c901db4c65d4feb0baf878da.tar.bz2 wabt-8ef2f014f80ad118c901db4c65d4feb0baf878da.zip |
add printf format attribute; fix some format bugs
Diffstat (limited to 'src/wasm-option-parser.c')
-rw-r--r-- | src/wasm-option-parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm-option-parser.c b/src/wasm-option-parser.c index 4d9eeabd..8aea99b3 100644 --- a/src/wasm-option-parser.c +++ b/src/wasm-option-parser.c @@ -49,7 +49,8 @@ static int option_match(const char* s, return i; } -static void error(WasmOptionParser* parser, const char* format, ...) { +static void WASM_PRINTF_FORMAT(2, 3) + error(WasmOptionParser* parser, const char* format, ...) { WASM_SNPRINTF_ALLOCA(buffer, length, format); parser->on_error(parser, buffer); } |