forked from github/server
warn about unused variables, back on
This commit is contained in:
parent
fc8e6dc6de
commit
6d9387f6c2
|
@ -21,7 +21,7 @@ COMPILE_DEFINITIONS ERESSEA_BUILDNO="${ERESSEA_BUILDNO}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (CMAKE_COMPILER_IS_GNUCC)
|
IF (CMAKE_COMPILER_IS_GNUCC)
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unused-but-set-variable")
|
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unused-but-set-variable")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion -Wno-sign-conversion")
|
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion -Wno-sign-conversion")
|
||||||
|
|
|
@ -64,7 +64,7 @@ static int cr_get_int(stream *strm, const char *match, int def)
|
||||||
|
|
||||||
static void test_cr_factionstealth(CuTest *tc) {
|
static void test_cr_factionstealth(CuTest *tc) {
|
||||||
stream strm;
|
stream strm;
|
||||||
faction *f1, *f2, *fr;
|
faction *f1, *f2;
|
||||||
region *r;
|
region *r;
|
||||||
unit *u;
|
unit *u;
|
||||||
|
|
||||||
|
@ -72,7 +72,6 @@ static void test_cr_factionstealth(CuTest *tc) {
|
||||||
mstream_init(&strm);
|
mstream_init(&strm);
|
||||||
f1 = test_create_faction(0);
|
f1 = test_create_faction(0);
|
||||||
f2 = test_create_faction(0);
|
f2 = test_create_faction(0);
|
||||||
fr = test_create_faction(0);
|
|
||||||
r = test_create_region(0, 0, 0);
|
r = test_create_region(0, 0, 0);
|
||||||
u = test_create_unit(f1, r);
|
u = test_create_unit(f1, r);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue