1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

Fix utils test; move -Winline to C-only flags (it only harms C++)

This commit is contained in:
Mike Gelfand 2014-12-11 05:25:26 +00:00
parent fed15dc29d
commit 7de6a52e14
2 changed files with 2 additions and 2 deletions

View file

@ -276,7 +276,6 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
-Wcast-align -Wcast-align
-Wfloat-equal -Wfloat-equal
-Wformat-security -Wformat-security
-Winline
-Wmissing-format-attribute -Wmissing-format-attribute
-Wpointer-arith -Wpointer-arith
-Wredundant-decls -Wredundant-decls
@ -292,6 +291,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
set(NEEDED_C_COMPILER_FLAGS set(NEEDED_C_COMPILER_FLAGS
${NEEDED_COMPILER_FLAGS} ${NEEDED_COMPILER_FLAGS}
-Winline
-Wmissing-declarations -Wmissing-declarations
-Wnested-externs -Wnested-externs
-Wstrict-prototypes) -Wstrict-prototypes)

View file

@ -121,7 +121,7 @@ test_utf8 (void)
in = "\x92\xE0\xE3\xA4\xAD\xAE \xA1\xEB\xE2\xEC \x81\xAE\xA3\xAE\xAC"; in = "\x92\xE0\xE3\xA4\xAD\xAE \xA1\xEB\xE2\xEC \x81\xAE\xA3\xAE\xAC";
out = tr_utf8clean (in, 17); out = tr_utf8clean (in, 17);
check (out != NULL); check (out != NULL);
check ((strlen (out) == 17) || (strlen (out) == 32)); check ((strlen (out) == 17) || (strlen (out) == 33));
check (tr_utf8_validate (out, -1, NULL)); check (tr_utf8_validate (out, -1, NULL));
tr_free (out); tr_free (out);