[libcxx-commits] [PATCH] D118179: [SystemZ][z/OS] Localize runtime error messages in libc++
Muiez Ahmed via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 27 13:33:43 PDT 2022
muiez added a comment.
The CI is failing with the following warning (shown as an error):
/home/libcxx-builder/.buildkite-agent/builds/63ef6a49a323-1/llvm-project/libcxx-ci/libcxx/src/system_error.cpp:134:44: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
snprintf(buffer, strerror_buff_size, getRuntimeErrorString(RM_UNKNOWN_ERROR), ev);
Any suggestions on getting passed this warning? It should be noted that `getRuntimeErrorString(RM_UNKNOWN_ERROR)` returns "Unknown error %d", which includes a format specifier so we can't make the call with "%s" as a string literal.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118179/new/
https://reviews.llvm.org/D118179
More information about the libcxx-commits
mailing list