makeBinaryWrapper: add -Wno-overlength-strings

The generated C code contains large string literals that are longer than
the maximum length specified by the standard.

However, GCC has no trouble dealing with those strings, so we can just
add -Wno-overlength-strings.

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Woverlength-strings
This commit is contained in:
Naïm Favier 2022-05-06 15:03:08 +02:00
parent 8ad52489e9
commit 42a4c05dd0
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2

View file

@ -46,6 +46,7 @@ makeWrapper() {
makeDocumentedCWrapper "$original" "$@" | \
@CC@ \
-Wall -Werror -Wpedantic \
-Wno-overlength-strings \
-Os \
-x c \
-o "$wrapper" -