From a36bcf0b79c2dd6263888743eb44d4977dc71da7 Mon Sep 17 00:00:00 2001 From: lfittl Date: Fri, 20 Jan 2006 16:07:58 +0000 Subject: [PATCH] - Enabled -Wpadded, -Wsign-compare, -Wconversion, -Wpointer-arith (gcc) git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@501 7ec92016-0320-0410-acc4-a06ded1c099a --- src/Makefile | 2 +- test/Factory/Makefile | 2 +- test/Function/Makefile | 2 +- test/LockingPtr/Makefile | 3 +-- test/Longevity/Makefile | 2 +- test/OrderedStatic/Makefile | 2 +- test/Pimpl/Makefile | 2 +- test/RegressionTest/Makefile | 2 +- test/SafeFormat/Makefile | 2 +- test/ScopeGuard/Makefile | 2 +- test/Singleton/Makefile | 2 +- test/flex_string/Makefile | 2 +- 12 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/Makefile b/src/Makefile index df8a618..a144dc1 100755 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ OBJ = Singleton.o SmallObj.o OrderedStatic.o SafeFormat.o BIN = ../lib/libloki.a -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../include -DNDEBUG $(BIN): $(OBJ) diff --git a/test/Factory/Makefile b/test/Factory/Makefile index 6faed5a..ea5d1be 100755 --- a/test/Factory/Makefile +++ b/test/Factory/Makefile @@ -1,5 +1,5 @@ BIN = Factory -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/Function/Makefile b/test/Function/Makefile index bf080f9..63f8e46 100644 --- a/test/Function/Makefile +++ b/test/Function/Makefile @@ -1,5 +1,5 @@ BIN = FunctionTest -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki -lboost_test_exec_monitor diff --git a/test/LockingPtr/Makefile b/test/LockingPtr/Makefile index 96dc2d5..cbfd4a3 100755 --- a/test/LockingPtr/Makefile +++ b/test/LockingPtr/Makefile @@ -1,6 +1,5 @@ BIN = main -CC = gcc -CXXFLAGS = -Wall -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/Longevity/Makefile b/test/Longevity/Makefile index 26b5858..bda54e6 100755 --- a/test/Longevity/Makefile +++ b/test/Longevity/Makefile @@ -1,6 +1,6 @@ BIN1 = main BIN2 = main2 -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -fexpensive-optimizations -O3 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -fexpensive-optimizations -O3 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/OrderedStatic/Makefile b/test/OrderedStatic/Makefile index 6edf530..cbfd4a3 100755 --- a/test/OrderedStatic/Makefile +++ b/test/OrderedStatic/Makefile @@ -1,5 +1,5 @@ BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/Pimpl/Makefile b/test/Pimpl/Makefile index 6edf530..cbfd4a3 100755 --- a/test/Pimpl/Makefile +++ b/test/Pimpl/Makefile @@ -1,5 +1,5 @@ BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/RegressionTest/Makefile b/test/RegressionTest/Makefile index 7de6da5..a168182 100755 --- a/test/RegressionTest/Makefile +++ b/test/RegressionTest/Makefile @@ -1,5 +1,5 @@ BIN = Test -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/SafeFormat/Makefile b/test/SafeFormat/Makefile index 1ae0d41..2d5825d 100755 --- a/test/SafeFormat/Makefile +++ b/test/SafeFormat/Makefile @@ -1,5 +1,5 @@ BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -fexpensive-optimizations -O3 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -fexpensive-optimizations -O3 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/ScopeGuard/Makefile b/test/ScopeGuard/Makefile index 6edf530..cbfd4a3 100755 --- a/test/ScopeGuard/Makefile +++ b/test/ScopeGuard/Makefile @@ -1,5 +1,5 @@ BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/Singleton/Makefile b/test/Singleton/Makefile index ab4770e..f149541 100644 --- a/test/Singleton/Makefile +++ b/test/Singleton/Makefile @@ -1,7 +1,7 @@ BIN1 = DeletableSingleton BIN2 = Dependencies BIN3 = Phoenix -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG LDFLAGS = -L../../lib LDLIBS = -lloki diff --git a/test/flex_string/Makefile b/test/flex_string/Makefile index 7b1f4be..bf31a01 100755 --- a/test/flex_string/Makefile +++ b/test/flex_string/Makefile @@ -1,5 +1,5 @@ BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2 +CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wpadded -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 CPPFLAGS = -I../../include -DNDEBUG .PHONY: build clean