summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-09-12 00:44:18 +0900
committerNobuyoshi Nakada <[email protected]>2021-09-12 22:49:01 +0900
commitc7dce12eb9e07f6ae35fc767760b862c10317e11 (patch)
tree43782fae1e69c38f3ff50c5c1818c9e513cb9cae /ext/openssl/ossl.c
parent11fd3fec534bb626e717a0628a0cf6d6252a0ff4 (diff)
[ruby/openssl] Suppress printf format warnings
* Add `printf` format attribute to `ossl_raise`. * Fix a format specifier in `config_load_bio`. * Use `ASSUME` for the unreachable condition. https://github.com/ruby/openssl/commit/41da2955db
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index cf070ef859..91cb54bfbe 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -265,6 +265,8 @@ ossl_to_der_if_possible(VALUE obj)
return obj;
}
+PRINTF_ARGS(static VALUE ossl_make_error(VALUE exc, const char *fmt, va_list args), 2, 0);
+
/*
* Errors
*/