From 8797a1b8bfdd34e52f92a0b0f43359f229aa55f0 Mon Sep 17 00:00:00 2001 From: talpachen Date: Sat, 14 Oct 2023 20:56:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20libtool:=20compile:=20=20i686-w64-mingw3?= =?UTF-8?q?2-gcc=20-DHAVE=5FCONFIG=5FH=20-I.=20-I/home/runner/work/openocd?= =?UTF-8?q?=5Fcmsis-dap=5Fv2/openocd=5Fcmsis-dap=5Fv2=20-D=5F=5FUSE=5FMING?= =?UTF-8?q?W=5FANSI=5FSTDIO=20-I/home/runner/work/openocd=5Fcmsis-dap=5Fv2?= =?UTF-8?q?/openocd=5Fcmsis-dap=5Fv2/src=20-I./src=20-DPKGDATADIR=3D\"/usr?= =?UTF-8?q?/share/openocd\"=20-DBINDIR=3D\"/usr/bin\"=20-I/home/runner/wor?= =?UTF-8?q?k/openocd=5Fcmsis-dap=5Fv2/openocd=5Fcmsis-dap=5Fv2/jimtcl=20-I?= =?UTF-8?q?./jimtcl=20-isystem=20/home/runner/work/openocd=5Fcmsis-dap=5Fv?= =?UTF-8?q?2/build/i686-w64-mingw32-root/usr/include/libusb-1.0=20-I/home/?= =?UTF-8?q?runner/work/openocd=5Fcmsis-dap=5Fv2/build/i686-w64-mingw32-roo?= =?UTF-8?q?t/usr/include/libftdi1=20-I/home/runner/work/openocd=5Fcmsis-da?= =?UTF-8?q?p=5Fv2/build/i686-w64-mingw32-root/usr/include/libusb-1.0=20-I/?= =?UTF-8?q?home/runner/work/openocd=5Fcmsis-dap=5Fv2/build/i686-w64-mingw3?= =?UTF-8?q?2-root/usr/include/hidapi=20-I/home/runner/work/openocd=5Fcmsis?= =?UTF-8?q?-dap=5Fv2/build/i686-w64-mingw32-root/usr/include=20-I/home/run?= =?UTF-8?q?ner/work/openocd=5Fcmsis-dap=5Fv2/build/i686-w64-mingw32-root/u?= =?UTF-8?q?sr/include/libusb-1.0=20-Wall=20-Wstrict-prototypes=20-Wformat-?= =?UTF-8?q?security=20-Wshadow=20-Wextra=20-Wno-unused-parameter=20-Wbad-f?= =?UTF-8?q?unction-cast=20-Wcast-align=20-Wredundant-decls=20-Wpointer-ari?= =?UTF-8?q?th=20-Wundef=20-Werror=20-g=20-O2=20-MT=20src/jtag/drivers/libo?= =?UTF-8?q?cdjtagdrivers=5Fla-cmsis=5Fdap=5Fusb=5Fbulk.lo=20-MD=20-MP=20-M?= =?UTF-8?q?F=20src/jtag/drivers/.deps/libocdjtagdrivers=5Fla-cmsis=5Fdap?= =?UTF-8?q?=5Fusb=5Fbulk.Tpo=20-c=20/home/runner/work/openocd=5Fcmsis-dap?= =?UTF-8?q?=5Fv2/openocd=5Fcmsis-dap=5Fv2/src/jtag/drivers/cmsis=5Fdap=5Fu?= =?UTF-8?q?sb=5Fbulk.c=20-o=20src/jtag/drivers/libocdjtagdrivers=5Fla-cmsi?= =?UTF-8?q?s=5Fdap=5Fusb=5Fbulk.o=20/home/runner/work/openocd=5Fcmsis-dap?= =?UTF-8?q?=5Fv2/openocd=5Fcmsis-dap=5Fv2/src/jtag/drivers/cmsis=5Fdap=5Fu?= =?UTF-8?q?sb=5Fbulk.c:=20In=20function=20=E2=80=98cmsis=5Fdap=5Fusb=5Fwri?= =?UTF-8?q?te=E2=80=99:=20/home/runner/work/openocd=5Fcmsis-dap=5Fv2/openo?= =?UTF-8?q?cd=5Fcmsis-dap=5Fv2/src/jtag/drivers/cmsis=5Fdap=5Fusb=5Fbulk.c?= =?UTF-8?q?:417:13:=20error:=20comparison=20of=20integer=20expressions=20o?= =?UTF-8?q?f=20different=20signedness:=20=E2=80=98int=E2=80=99=20and=20?= =?UTF-8?q?=E2=80=98unsigned=20int=E2=80=99=20[-Werror=3Dsign-compare]=20?= =?UTF-8?q?=20=20417=20|=20=20if=20((txlen=20<=20dap->packet=5Fbuffer=5Fsi?= =?UTF-8?q?ze)=20&&=20!(txlen=20%=20dap->packet=5Fsize))=20{=20=20=20=20?= =?UTF-8?q?=20=20=20|=20=20=20=20=20=20=20=20=20=20=20=20=20^=20cc1:=20all?= =?UTF-8?q?=20warnings=20being=20treated=20as=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jtag/drivers/cmsis_dap_usb_bulk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/cmsis_dap_usb_bulk.c b/src/jtag/drivers/cmsis_dap_usb_bulk.c index 29104d3a5..568f61a26 100644 --- a/src/jtag/drivers/cmsis_dap_usb_bulk.c +++ b/src/jtag/drivers/cmsis_dap_usb_bulk.c @@ -412,7 +412,7 @@ static int cmsis_dap_usb_write(struct cmsis_dap *dap, int txlen, int timeout_ms) { int transferred = 0; int err; - int tail = 0; + unsigned int tail = 0; if ((txlen < dap->packet_buffer_size) && !(txlen % dap->packet_size)) { tail = 1;