summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-09-25 06:02:51 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-09-25 06:02:51 +0530
commit3dd0550373193e8ae2c868c8bd24679b929bd52d (patch)
tree7e9b6096faebd3ac6cd2347048bd96198a71be49 /crawl-ref/source/initfile.cc
parent0bfa6c34ee756c2bffcae7fac665ba74ef925320 (diff)
downloadcrawl-ref-3dd0550373193e8ae2c868c8bd24679b929bd52d.tar.gz
crawl-ref-3dd0550373193e8ae2c868c8bd24679b929bd52d.zip
Ignore unused return codes in find_executable_path.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 247cde2076..3d5c8f651f 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -3452,9 +3452,9 @@ std::string find_executable_path()
tempPath[0] = 0;
#if defined ( _MSC_VER )
- int retval = GetModuleFileName ( NULL, tempPath, sizeof(tempPath) );
+ GetModuleFileName ( NULL, tempPath, sizeof(tempPath) );
#elif defined ( __linux__ )
- int retval = readlink ( "/proc/self/exe", tempPath, sizeof(tempPath) );
+ readlink ( "/proc/self/exe", tempPath, sizeof(tempPath) );
#elif defined ( __MACH__ )
strncpy ( tempPath, NXArgv[0], sizeof(tempPath) );
#else