- 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@499 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
7acf9ff6be
commit
c68642eb5f
25 changed files with 83 additions and 56 deletions
|
@ -1,6 +1,6 @@
|
|||
BIN1 = SmallObjBench
|
||||
BIN2 = SmallObjSingleton
|
||||
CXXFLAGS = -Wall -fexpensive-optimizations -O3
|
||||
CXXFLAGS = -Wall -Wold-style-cast -Wundef -pedantic -fexpensive-optimizations -O3
|
||||
CPPFLAGS = -I../../include -DNDEBUG
|
||||
LDFLAGS = -L../../lib
|
||||
LDLIBS = -lloki
|
||||
|
|
|
@ -195,11 +195,11 @@ int FUNC(void** arrv, const int N, int loop, Timer& t, const char* s) \
|
|||
|
||||
|
||||
LOKI_SMALLOBJ_BENCH(delete_new ,delete new T;)
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_mal ,std::free(std::malloc(sizeof(T))););
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_mal ,std::free(std::malloc(sizeof(T)));)
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_all ,std::allocator<T> st;st.deallocate(st.allocate(1), 1);)
|
||||
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_array ,delete[] new T[N];)
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_array_mal,std::free(std::malloc(sizeof(T[TN]))););
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_array_mal,std::free(std::malloc(sizeof(T[TN])));)
|
||||
LOKI_SMALLOBJ_BENCH(delete_new_array_all,std::allocator<T[TN]> st;st.deallocate(st.allocate(1), 1);)
|
||||
|
||||
LOKI_SMALLOBJ_BENCH_ARRAY(new_del_on_arr , , arr[i] = new T; ,
|
||||
|
@ -324,6 +324,10 @@ int main()
|
|||
// ----------------------------------------------------------------------------
|
||||
|
||||
// $Log$
|
||||
// Revision 1.19 2006/01/19 23:11:57 lfittl
|
||||
// - Disabled -Weffc++ flag, fixing these warnings produces too much useless code
|
||||
// - Enabled -pedantic, -Wold-style-cast and -Wundef for src/ and test/
|
||||
//
|
||||
// Revision 1.18 2006/01/05 09:55:09 syntheticpp
|
||||
// assert, include path, and virtual ~ patches by Lukas Fittl
|
||||
//
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
int rel(int t)
|
||||
{
|
||||
return ( t100==0 ? 100 : (int) floor(100.0*t/t100+0.5) );
|
||||
return ( t100==0 ? 100 : static_cast<int>(floor(100.0*t/t100+0.5)) );
|
||||
}
|
||||
|
||||
double speedup(int t)
|
||||
|
@ -75,6 +75,10 @@ private:
|
|||
#endif
|
||||
|
||||
// $Log$
|
||||
// Revision 1.6 2006/01/19 23:11:57 lfittl
|
||||
// - Disabled -Weffc++ flag, fixing these warnings produces too much useless code
|
||||
// - Enabled -pedantic, -Wold-style-cast and -Wundef for src/ and test/
|
||||
//
|
||||
// Revision 1.5 2005/10/30 14:03:23 syntheticpp
|
||||
// replace tabs space
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue