From: barate Date: Tue, 1 Jun 2010 15:54:57 +0000 (+0000) Subject: Removed warnings with gcc 4.3.2 (thanks to G. David) X-Git-Tag: V1_2_0rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30bf662eea975372edc214a29d5f653afc998d25;p=tools%2Flibbatch.git Removed warnings with gcc 4.3.2 (thanks to G. David) --- diff --git a/src/Core/Batch_BatchManager_eClient.cxx b/src/Core/Batch_BatchManager_eClient.cxx index 1f92a24..83716f1 100644 --- a/src/Core/Batch_BatchManager_eClient.cxx +++ b/src/Core/Batch_BatchManager_eClient.cxx @@ -292,13 +292,13 @@ namespace Batch { const std::string & BatchManager_eClient::getTmpDir() { if (tmpDirName.empty()) { - char * baseDir = getenv("TEMP"); + const char * baseDir = getenv("TEMP"); if (baseDir == NULL) baseDir = getenv("TMP"); if (baseDir == NULL) baseDir = getenv("TEMPDIR"); if (baseDir == NULL) baseDir = getenv("TMPDIR"); if (baseDir == NULL) baseDir = "/tmp"; - char * userName = getenv("USER"); + const char * userName = getenv("USER"); if (userName == NULL) userName = getenv("USERNAME"); if (userName == NULL) userName = "unknown";