Fixing warning detected by additional compiler flags

This commit is contained in:
DennisOSRM
2012-09-19 13:48:04 +02:00
parent c14ceff9b3
commit ac588911ba
17 changed files with 34 additions and 33 deletions
+3 -3
View File
@@ -70,7 +70,7 @@ std::string getFileAndLine (char * offset_end) {
}
void crashHandler(int sig_num, siginfo_t * info, void * ucontext) {
void crashHandler(int sig_num, siginfo_t * info, void * ) {
const size_t maxDepth = 100;
//size_t stackDepth;
@@ -136,8 +136,8 @@ void crashHandler(int sig_num, siginfo_t * info, void * ucontext) {
}
void installCrashHandler(std::string b) {
#ifndef NDEBUG
binaryName = b;
#ifndef NDEBUG
struct sigaction sigact;
sigemptyset(&sigact.sa_mask);
sigact.sa_sigaction = crashHandler;
@@ -151,6 +151,6 @@ void installCrashHandler(std::string b) {
#endif
}
#else
inline void installCrashHandler(std::string b) {}
inline void installCrashHandler(std::string ) {}
#endif
#endif /* LINUXSTACKTRACE_H_ */