clang does not like if the format argument of printf like function
is not a string literal (or constant):
warning: format string is not a string literal (potentially insecure)
Make the format string constant to silence the warning.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <
20210609061532.12774-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22519.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
return;
}
- const char* str = "You must define CA file (--ca)"
+ const char* const str = "You must define CA file (--ca)"
#ifndef ENABLE_CRYPTO_MBEDTLS
" or CA path (--capath)"
#endif