diff options
author | Naïm Favier <n@monade.li> | 2022-05-06 15:03:08 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-05-06 16:12:57 +0200 |
commit | 42a4c05dd092e379c57eefb174bb1a5fea90b92a (patch) | |
tree | 6992e867d7bc70df95fce85d6cd3aaf1fc764c55 /pkgs/build-support | |
parent | 8ad52489e972c2fa8dbba5f9af5e13178973f2f4 (diff) |
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
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-binary-wrapper.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh index 7123f100c1755..7b69583574a08 100644 --- a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh +++ b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh @@ -46,6 +46,7 @@ makeWrapper() { makeDocumentedCWrapper "$original" "$@" | \ @CC@ \ -Wall -Werror -Wpedantic \ + -Wno-overlength-strings \ -Os \ -x c \ -o "$wrapper" - |