From ff6c93b16f408a2ef10e47a4168c59ab6c4fdafb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Apr 2014 14:52:01 +0300 Subject: Fix compilation warnings. --- build/bmakedebug | 5 +++-- src/commands.cpp | 1 + src/commands.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build/bmakedebug b/build/bmakedebug index 9d99e473d..8c3d43089 100755 --- a/build/bmakedebug +++ b/build/bmakedebug @@ -9,7 +9,7 @@ export CXX=g++-4.9 export LANG=C -export CXXFLAGS="-ggdb3 -Og -pipe -ffast-math \ +export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \ -fsanitize=address \ -fno-omit-frame-pointer -funswitch-loops \ -Wvariadic-macros -Wvla -Wredundant-decls \ @@ -37,7 +37,8 @@ export CXXFLAGS="-ggdb3 -Og -pipe -ffast-math \ -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function \ -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -ftrapv \ -fsched-pressure \ --Wconditionally-supported -Wdate-time" +-Wconditionally-supported -Wdate-time \ +-fno-var-tracking" autoreconf -i ./configure --prefix=$dir/run \ diff --git a/src/commands.cpp b/src/commands.cpp index de4c03012..3d476f8c6 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1136,6 +1136,7 @@ impHandler0(error) { const int *const ptr = nullptr; logger->log("test %d", *ptr); + exit(1); } impHandler(url) diff --git a/src/commands.h b/src/commands.h index 6dd688a17..a27f430db 100644 --- a/src/commands.h +++ b/src/commands.h @@ -107,7 +107,7 @@ namespace Commands decHandler(serverIgnoreAll); decHandler(serverUnIgnoreAll); decHandler(setDrop); - decHandler(error); + decHandler(error) __attribute__ ((noreturn)); decHandler(url); decHandler(open); decHandler(dump); -- cgit v1.2.3-70-g09d2