Make GDB -Wpointer-sign clean on MinGW too.
authorPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 17:48:10 +0000 (17:48 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 19 Apr 2013 17:48:10 +0000 (17:48 +0000)
commitc49e7f76afc4507257d66f1c72fabd83c2d6ef18
treea4d1e31bd4785bdc87068f40a57d7e01c8a1ae3d
parent12ff8552b9d6e9adf04d1b0443c9a77e27bf0d82
Make GDB -Wpointer-sign clean on MinGW too.

This is the remaining issue impeding GDB to build with "-Wpointer-sign
-Werror" with Fedora 17's i686-w64-mingw32 cross toolchain.

../../src/gdb/ser-tcp.c: In function 'net_read_prim':
../../src/gdb/ser-tcp.c:341:3: error: pointer targets in passing argument 2 of 'recv' differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/serial.h:23:0,
                 from ../../src/gdb/ser-tcp.c:21:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:983:34: note: expected 'char *' but argument is of type 'unsigned char *'

gdb/
2013-04-19  Pedro Alves  <palves@redhat.com>

* ser-tcp.c (net_read_prim): Cast second argument to recv to
'void *'.
gdb/ChangeLog
gdb/ser-tcp.c
This page took 0.029833 seconds and 4 git commands to generate.