This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] -Wwrite-strings: gdbserver's 'port' parsing
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 05 Apr 2017 19:10:30 -0400
- Subject: [binutils-gdb] -Wwrite-strings: gdbserver's 'port' parsing
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT fb32b4f7005ef8f1bde02394b58b5c5eda9cbf10 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: fb32b4f7005ef8f1bde02394b58b5c5eda9cbf10
-Wwrite-strings: gdbserver's 'port' parsing
-Wwrite-strings flags this assignment as requiring a cast:
port = STDIO_CONNECTION_NAME;
because 'port' is a "char *", and STDIO_CONNECTION_NAME is a string
literal.
gdb/gdbserver/ChangeLog:
2017-04-05 Pedro Alves <palves@redhat.com>
* remote-utils.c (remote_prepare, remote_open): Constify.
* remote-utils.h (remote_prepare, remote_open): Constify.
* server.c (captured_main): Constify 'port' handling.