diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-09-12 00:44:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-12 22:49:01 +0900 |
commit | c7dce12eb9e07f6ae35fc767760b862c10317e11 (patch) | |
tree | 43782fae1e69c38f3ff50c5c1818c9e513cb9cae /ext/openssl/ossl_config.c | |
parent | 11fd3fec534bb626e717a0628a0cf6d6252a0ff4 (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_config.c')
-rw-r--r-- | ext/openssl/ossl_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 21c327b26b..0bac027487 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -60,7 +60,7 @@ config_load_bio(CONF *conf, BIO *bio) if (eline <= 0) ossl_raise(eConfigError, "wrong config format"); else - ossl_raise(eConfigError, "error in line %d", eline); + ossl_raise(eConfigError, "error in line %ld", eline); } BIO_free(bio); |