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(CMAKE_CXX_COMPILER "/usr/lib/colorgcc/bin/g++")
set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow " set (CXX_FLAGS "-Wall -Wextra -pedantic -Weffc++ -Wshadow "
"-Wpointer-arith -Wcast-qual "
"-ggdb -fprofile-arcs -ftest-coverage -std=c++0x") "-ggdb -fprofile-arcs -ftest-coverage -std=c++0x")
add_definitions( ${CXX_FLAGS} ) add_definitions( ${CXX_FLAGS} )

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

Loading…
Cancel
Save