X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1353ea496ac9d8bc31ad8238e5ac9a79d26e1b7..8e190f0ed9c242e6df5fd4dd99fdaf6c9dea1cda:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index dffddb191a..429cf3e2f3 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -1101,7 +1101,10 @@ static bool wxDoSetEnv(const wxString& variable, const char *value) if ( !value ) { #ifdef HAVE_UNSETENV - return unsetenv(variable.mb_str()) == 0; + // don't test unsetenv() return value: it's void on some systems (at + // least Darwin) + unsetenv(variable.mb_str()); + return true; #else value = ""; // we can't pass NULL to setenv() #endif