Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
libtool: compile:  i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I/home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2 -D__USE_MINGW_ANSI_STDIO -I/home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2/src -I./src -DPKGDATADIR=\"/usr/share/openocd\" -DBINDIR=\"/usr/bin\" -I/home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2/jimtcl -I./jimtcl -isystem /home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include/libusb-1.0 -I/home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include/libftdi1 -I/home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include/libusb-1.0 -I/home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include/hidapi -I/home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include -I/home/runner/work/openocd_cmsis-dap_v2/build/i686-w64-mingw32-root/usr/include/libusb-1.0 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Wpointer-arith -Wundef -Werror -g -O2 -MT src/jtag/drivers/libocdjtagdrivers_la-cmsis_dap_usb_bulk.lo -MD -MP -MF src/jtag/drivers/.deps/libocdjtagdrivers_la-cmsis_dap_usb_bulk.Tpo -c /home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2/src/jtag/drivers/cmsis_dap_usb_bulk.c -o src/jtag/drivers/libocdjtagdrivers_la-cmsis_dap_usb_bulk.o
/home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2/src/jtag/drivers/cmsis_dap_usb_bulk.c: In function ‘cmsis_dap_usb_write’:
/home/runner/work/openocd_cmsis-dap_v2/openocd_cmsis-dap_v2/src/jtag/drivers/cmsis_dap_usb_bulk.c:417:13: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
  417 |  if ((txlen < dap->packet_buffer_size) && !(txlen % dap->packet_size)) {
      |             ^
cc1: all warnings being treated as errors
  • Loading branch information
talpachen committed Oct 14, 2023
1 parent ed0c662 commit 8797a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jtag/drivers/cmsis_dap_usb_bulk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8797a1b

Please sign in to comment.