diff options
author | Sven Schwermer <sven.schwermer@disruptive-technologies.com> | 2021-05-27 08:33:08 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-05-28 14:22:45 +0200 |
commit | 5642882f11b0ca6b026b20775c0cddf4a29bc26c (patch) | |
tree | 3b7ecd9cdbb64bd15d09bfc3cc888abccbf50f18 /util/mkerr.pl | |
parent | Fix PKCS12_create() so that a fetch error is not added to the error stack. (diff) | |
download | openssl-5642882f11b0ca6b026b20775c0cddf4a29bc26c.tar.xz openssl-5642882f11b0ca6b026b20775c0cddf4a29bc26c.zip |
mkerr: Fix string literal conversion
This fixes a compiler warning on clang-1205.0.22.9 when compiling the
generated code as C++11:
ISO C++11 does not allow conversion from string literal to 'char *'
[-Wwritable-strings]
CLA: trivial
Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15495)
Diffstat (limited to '')
-rwxr-xr-x | util/mkerr.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl index ab25b8fc96..1cb772c00f 100755 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -459,7 +459,7 @@ extern \"C\" { # endif int ERR_load_${lib}_strings(void); void ERR_unload_${lib}_strings(void); -void ERR_${lib}_error(int function, int reason, char *file, int line); +void ERR_${lib}_error(int function, int reason, const char *file, int line); # ifdef __cplusplus } # endif @@ -621,7 +621,7 @@ ${st}void ERR_unload_${lib}_strings(void) } } -${st}void ERR_${lib}_error(int function, int reason, char *file, int line) +${st}void ERR_${lib}_error(int function, int reason, const char *file, int line) { if (lib_code == 0) lib_code = ERR_get_next_error_library(); |