On Windows, getenv triggers a warning. Use atoi instead.

This commit is contained in:
Bertrand Bellenot 2016-11-30 10:57:47 +01:00 committed by sftnight
parent fdf057e19a
commit 9b7a5cca15

View File

@ -719,7 +719,7 @@ namespace cling {
ForceSymbolsAsUsed(){
// Never true, but don't tell the compiler.
// Prevents stripping the symbol due to dead-code optimization.
if (std::getenv("bar") == (char*) -1) symbol_requester();
if (std::atoi("0")) symbol_requester();
}
} sForceSymbolsAsUsed;
}