From 5c3c2f08e16a3a682db878d66095f90e732194aa Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sun, 17 Feb 2019 22:38:59 +0900 Subject: [PATCH] =?utf8?q?strip=5Fend=E9=96=A2=E6=95=B0=E3=81=AE=E3=83=A6?= =?utf8?q?=E3=83=8B=E3=83=83=E3=83=88=E3=83=86=E3=82=B9=E3=83=88=E3=82=92?= =?utf8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- test/unit/strip_end/Makefile | 2 +- test/unit/strip_end/cmd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.18.0