Added some flags to suppress false-positive warnings on linux compiler
@@ -3,19 +3,19 @@ SHELL = /bin/bash
# Generic makefile
MARCH = -march=i686 -m32
-OPTDEFAULT = -fno-omit-frame-pointer -ffast-math -fpermissive $(MARCH)
-COPTDEFAULT = -fno-omit-frame-pointer -ffast-math $(MARCH)
+OPTDEFAULT = -fno-strict-aliasing -fno-omit-frame-pointer -ffast-math -fpermissive $(MARCH)
+COPTDEFAULT = -fno-strict-aliasing -fno-omit-frame-pointer -ffast-math $(MARCH)
OPT = -Os $(OPTDEFAULT)
COPT = -Os $(COPTDEFAULT)
-WARN = -Wall -Wno-unknown-pragmas -Wno-invalid-offsetof -Wno-unused-but-set-variable -Wno-switch
-CWARN = -Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable -Wno-switch -Wno-implicit-function-declaration
+WARN = -Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable -Wno-unused-result -Wno-maybe-uninitialized -Wno-switch -Wno-invalid-offsetof
+CWARN = -Wall -Wno-unknown-pragmas -Wno-unused-but-set-variable -Wno-unused-result -Wno-maybe-uninitialized -Wno-switch -Wno-implicit-function-declaration
# DB includes + libs
DBINCLUDE = -L/usr/lib/mysql
DBLIBS = -lmysqlclient
# Linux
-INCLUDE = -I./src/common $(DBINCLUDE)
+INCLUDE = $(DBINCLUDE)
LIBS = -dynamic -lpthread -lrt -ldl $(DBLIBS)
ifdef NIGHTLY
