extra warnings from gcc

master
Denes Matetelki 13 years ago
parent 7c7a847f52
commit 47ac147c4c

@ -4,6 +4,7 @@ project (CPP_UTILS_LIB)
set(CMAKE_CXX_COMPILER "/usr/lib/colorgcc/bin/g++")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow "
"-Wpointer-arith -Wcast-qual "
"-ggdb -fprofile-arcs -ftest-coverage -std=c++0x")
add_definitions( ${CXX_FLAGS} )

@ -2,6 +2,7 @@
set(CMAKE_CXX_COMPILER "/usr/lib/colorgcc/bin/g++")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow "
"-Wpointer-arith -Wcast-qual "
"-ggdb -fprofile-arcs -ftest-coverage --std=c++0x " )
add_definitions( ${CXX_FLAGS} )
@ -18,21 +19,21 @@ if(CXXTEST_FOUND)
generated_main.cpp
Fixture.hpp
# test_ArgParse.hpp
# test_Common.hpp
# test_ConditionalVariable.hpp
# test_Multiton.hpp
# test_Mutex.hpp
test_ArgParse.hpp
test_Common.hpp
test_ConditionalVariable.hpp
test_Multiton.hpp
test_Mutex.hpp
test_ObjectPool.hpp
# test_ScopedLock.hpp
# test_Semaphore.hpp
# test_Singleton_DCLP.hpp
# test_Singleton_call_once.hpp
# # test_Singleton.hpp Cannot test private member, Ficture.hpp loads it
# test_Singleton_meyers.hpp
# test_Thread.hpp
# test_ThreadPool.hpp
# # test_Timer.hpp Takes too much time&buggy
test_ScopedLock.hpp
test_Semaphore.hpp
test_Singleton_DCLP.hpp
test_Singleton_call_once.hpp
# test_Singleton.hpp Cannot test private member, Ficture.hpp loads it
test_Singleton_meyers.hpp
test_Thread.hpp
test_ThreadPool.hpp
# test_Timer.hpp Takes too much time&buggy
)
target_link_libraries(testCppUtils CppUtils gcov)
endif()

Loading…
Cancel
Save