diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-05-22 16:08:57 -0700 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 15:43:49 +0100 |
commit | a6e5943a2afa5ffe733b9df23a4ba510d11b33fc (patch) | |
tree | 0318f95ebf59c3035cbec77253326aacaa36498c /package/libs/elfutils/Makefile | |
parent | 08070221edd5eb98559cc7ae573729420ea47390 (diff) | |
download | upstream-a6e5943a2afa5ffe733b9df23a4ba510d11b33fc.tar.gz upstream-a6e5943a2afa5ffe733b9df23a4ba510d11b33fc.tar.bz2 upstream-a6e5943a2afa5ffe733b9df23a4ba510d11b33fc.zip |
elfutils: Pass -Wno-unused-result to silence warnings as errors
elfutils turns on -Werror by default, and patch 100-musl-compat.patch
changes how strerror_r is used and we no longer use the function's
return value. This causes the following build error/warning to occur
with glibc-based toolchains:
dwfl_error.c: In function 'dwfl_errmsg':
dwfl_error.c:158:18: error: ignoring return value of 'strerror_r',
declared with attribute warn_unused_result [-Werror=unused-result]
strerror_r (error & 0xffff, s, sizeof(s));
^
cc1: all warnings being treated as errors
Fixing this would be tricky as there are two possible signatures for
strerror_r (XSI and GNU), just turn off unused-result warnings instead.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
(cherry picked from commit 484f768dfa295d9fccd82c57cae00458f32b7182)
Diffstat (limited to 'package/libs/elfutils/Makefile')
-rw-r--r-- | package/libs/elfutils/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile index d764970c28..869513f16f 100644 --- a/package/libs/elfutils/Makefile +++ b/package/libs/elfutils/Makefile @@ -68,7 +68,7 @@ endif CONFIGURE_ARGS += \ --without-lzma -TARGET_CFLAGS += -D_GNU_SOURCE +TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include |