You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building LVM 2.03.16 on a musl-based system I get the following warning:
lvmpolld-core.c: In function '_strerror_r':
lvmpolld-core.c:56:16: warning: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion]
56 | return strerror_r(errnum, data->buf, sizeof(data->buf)); /* never returns NULL */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Recent compilers are getting stricter and with clang-15.0.0 this is now an error
Building LVM 2.03.16 on a musl-based system I get the following warning:
Recent compilers are getting stricter and with clang-15.0.0 this is now an error
musl declares
strerror_r
as:while glibc declares it as:
musl's is compliant with POSIX, which states:
https://www.unix.com/man-page/posix/3posix/strerror_r/
The text was updated successfully, but these errors were encountered: