diff options
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); } |