From 3dd0550373193e8ae2c868c8bd24679b929bd52d Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Fri, 25 Sep 2009 06:02:51 +0530 Subject: Ignore unused return codes in find_executable_path. --- crawl-ref/source/initfile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source') 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 -- cgit v1.2.3-54-g00ecf