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))`.
This commit is contained in:
Attila Oláh 2021-06-12 12:56:51 +02:00
parent 19000cd53c
commit 33419c8dd1
No known key found for this signature in database
GPG Key ID: 07E6C0643FD142C3

View File

@ -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 )