From: j8takagi Date: Sun, 17 Feb 2019 13:38:59 +0000 (+0900) Subject: strip_end関数のユニットテストを追加 X-Git-Tag: v0.5p9~12 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3c2f08e16a3a682db878d66095f90e732194aa;p=YACASL2.git strip_end関数のユニットテストを追加 --- diff --git a/test/unit/strip_end/Makefile b/test/unit/strip_end/Makefile index c9ff667..83d934b 100644 --- a/test/unit/strip_end/Makefile +++ b/test/unit/strip_end/Makefile @@ -2,7 +2,7 @@ include ../Define.mk include ../Test.mk CC := gcc -CFLAGS := -Wall +CFLAGS := -Wall -Wextra .INTERMEDIATE: $(CMD_FILE) diff --git a/test/unit/strip_end/cmd.c b/test/unit/strip_end/cmd.c index d7122e4..3a68cd6 100644 --- a/test/unit/strip_end/cmd.c +++ b/test/unit/strip_end/cmd.c @@ -4,7 +4,7 @@ int main(){ char s[][10] = {"abc\n", "abc ", "abc\t", "abc\t\n", "abc"}; - for(int i = 0; i < sizeof(s) / sizeof(s[0]); i++) { + for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) { printf("%s:\n", strip_end(s[i])); } return 0;