Browse Source

dtoolutil: Fix compile warning in ExecutionEnvironment

rdb 5 years ago
parent
commit
1b8c4e0029
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolutil/executionEnvironment.cxx

+ 2 - 0
dtool/src/dtoolutil/executionEnvironment.cxx

@@ -223,6 +223,8 @@ ns_has_environment_variable(const string &var) const {
 
 #ifndef PREREAD_ENVIRONMENT
   return getenv(var.c_str()) != nullptr;
+#else
+  return false;
 #endif
 }