Fix compilation with -Wunused-variable

When compiling with -Wunused-variable, `EXT_STRERROR_R_CHAR_P` gets undefined because of a failing compilation check.

An alternative would be to mark `c` as `__attribute__((undefined))`, but MSVC doesn't have `__attribute__((undefined))`.
main
Attila Oláh 4 years ago
parent 19000cd53c
commit 33419c8dd1
No known key found for this signature in database
GPG Key ID: 07E6C0643FD142C3

@ -32,6 +32,7 @@ check_cxx_source_compiles( "
int main() {
char buff[100];
const char* c = strerror_r(0,buff,100);
(void)c; // ignore unuse-variable
return 0;
}" EXV_STRERROR_R_CHAR_P )

Loading…
Cancel
Save