summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/checkutils.cpp2
-rw-r--r--src/utils/physfstools.cpp2
-rw-r--r--src/utils/process.cpp3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/utils/checkutils.cpp b/src/utils/checkutils.cpp
index 8f3e5c337..20c22df46 100644
--- a/src/utils/checkutils.cpp
+++ b/src/utils/checkutils.cpp
@@ -73,7 +73,7 @@ void reportStack(const char *const file,
text,
func);
#if defined __linux__ || defined __linux
- size = (int)backtrace(array, 15);
+ size = static_cast<int>(backtrace(array, 15));
strings = backtrace_symbols(array, size);
for (i = 0; i < size; i++)
logger->log1(strings[i]);
diff --git a/src/utils/physfstools.cpp b/src/utils/physfstools.cpp
index 6f4345c36..1e2ef1e2e 100644
--- a/src/utils/physfstools.cpp
+++ b/src/utils/physfstools.cpp
@@ -54,7 +54,7 @@ namespace PhysFs
_exit(1);
}
updateDirSeparator();
- atexit((void(*)()) PHYSFS_deinit);
+ atexit(reinterpret_cast<void(*)()>(PHYSFS_deinit));
}
void updateDirSeparator()
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index a12fb4301..a1c9d8a72 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -212,7 +212,10 @@ bool execFile(const std::string &pathName, const std::string &name,
arg2.c_str(), static_cast<char *>(nullptr));
}
_exit(-1);
+ PRAGMA45(GCC diagnostic push)
+ PRAGMA45(GCC diagnostic ignored "-Wunreachable-code-return")
return false;
+ PRAGMA45(GCC diagnostic pop)
}
return true;
}