forked from github/server
make gcc warn about signed/unsigned comparisons, just like Visual Studio does
This commit is contained in:
parent
1dc516ab50
commit
9418051cd3
|
@ -13,7 +13,7 @@ include_directories (${BSON_INCLUDE_DIR})
|
|||
include_directories (${INIPARSER_INCLUDE_DIR})
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -Wsign-compare -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -Wno-long-long")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -DHAVE__BOOL")
|
||||
elseif(MSVC)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /WX /MP")
|
||||
|
|
|
@ -1199,7 +1199,7 @@ void setguard(unit * u, unsigned int flags)
|
|||
}
|
||||
fset(u, UFL_GUARD);
|
||||
fset(u->region, RF_GUARDED);
|
||||
if ((int)flags == guard_flags(u)) {
|
||||
if (flags == guard_flags(u)) {
|
||||
if (a)
|
||||
a_remove(&u->attribs, a);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue