libhttp icon indicating copy to clipboard operation
libhttp copied to clipboard

Not building on GCC 7.2 (Unused variable)

Open 0xfede7c8 opened this issue 7 years ago • 1 comments

libhttp git:(master) make
....stuff
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

0xfede7c8 avatar Jul 10 '18 19:07 0xfede7c8

the stederror_r require you to handle the return value.

Frank-Shaw-FS avatar Jul 12 '18 03:07 Frank-Shaw-FS