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
src/httplib_error_string.c: In function ‘httplib_error_string’:
src/httplib_error_string.c:170:2: error: ignoring return value of ‘strerror_r’, declared with attribute warn_unused_result [-Werror=unused-result]
strerror_r( error_code, buf, buf_len );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:149: obj/httplib_error_string.o] Error 1
Adding "-Wno-error=unused-result" to the Makefile is a quick-fix for this error, but doesn't resolve the underlying issue.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Which operating system does your development system running on? That make it easier for me to create a virtual machine with the same environment to simulate the error.
I had this error as well, by simply using printf() in the sourcecode, I resolved the error but I think it was not a great solution.
OS: Lubuntu 18.04 with newest updates
I hope I could help.
Compilation fails out of the box with GCC 8.3
Adding "-Wno-error=unused-result" to the Makefile is a quick-fix for this error, but doesn't resolve the underlying issue.
The text was updated successfully, but these errors were encountered: