- 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:
parent
c68642eb5f
commit
e2a042aa25
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
BIN = main
|
BIN = main
|
||||||
CXXFLAGS = -Wall -O2
|
CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -O2
|
||||||
CPPFLAGS = -I../../include -DNDEBUG
|
CPPFLAGS = -I../../include -DNDEBUG
|
||||||
|
|
||||||
.PHONY: build clean
|
.PHONY: build clean
|
||||||
|
|
|
@ -121,7 +121,7 @@ String Test(String, unsigned int count, bool avoidAliasing)
|
||||||
// test copy constructor 21.3.1
|
// test copy constructor 21.3.1
|
||||||
{
|
{
|
||||||
const size_type pos = random(0, test.size());
|
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;
|
test = s;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue