From 29a0c916dfdc2f960761c1bebcccc53478abd30c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 14 May 2011 17:09:10 -0700 Subject: uhd: add gcc warning for sign comparison mismatch --- host/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 6b342c2d3..1559bd6bf 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -70,6 +70,8 @@ SET(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING "") IF(CMAKE_COMPILER_IS_GNUCXX) ADD_DEFINITIONS(-Wall) ADD_DEFINITIONS(-Wextra) + ADD_DEFINITIONS(-Wsign-compare) + #ADD_DEFINITIONS(-Wconversion) #ADD_DEFINITIONS(-pedantic) #ADD_DEFINITIONS(-ansi) IF(NOT WIN32) -- cgit v1.2.3