- Disabled -Weffc++ flag, fixing these warnings produces too much useless code

- Enabled -pedantic, -Wold-style-cast and -Wundef for src/ and test/


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@500 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
lfittl 2006-01-20 15:56:11 +00:00
parent c68642eb5f
commit e2a042aa25
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
BIN = main
CXXFLAGS = -Wall -O2
CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2
CPPFLAGS = -I../../include -DNDEBUG
.PHONY: build clean

View file

@ -121,7 +121,7 @@ String Test(String, unsigned int count, bool avoidAliasing)
// test copy constructor 21.3.1
{
const size_type pos = random(0, test.size());
String s(test, pos, random(0, (typename String::size_type)(test.size() - pos)));
String s(test, pos, random(0, static_cast<typename String::size_type>(test.size() - pos)));
test = s;
}
break;