[Bug general/21010] Incompatible with MUSL libc: strerror_r

2017-05-22 Thread florian at openwrt dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21010

Florian Fainelli  changed:

   What|Removed |Added

 CC||florian at openwrt dot org

--- Comment #1 from Florian Fainelli  ---
strerror_r is marked with __must_check on glibc, and this leads to the
following warnings/errors (with Werror):

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 & 0x, s, sizeof(s));
  ^
cc1: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/21010] Incompatible with MUSL libc: strerror_r

2017-05-22 Thread florian at openwrt dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21010

--- Comment #2 from Florian Fainelli  ---
(In reply to Florian Fainelli from comment #1)
> strerror_r is marked with __must_check on glibc, and this leads to the
> following warnings/errors (with Werror):

Sorry, not __must_check, but the return value becomes unused here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.