This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] -Wwrite-strings: Constify warning_pre_print
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 05 Apr 2017 16:51:59 -0400
- Subject: [binutils-gdb] -Wwrite-strings: Constify warning_pre_print
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 69bbf465237819bd7bf2a21a682d695273b3c8cb ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 69bbf465237819bd7bf2a21a682d695273b3c8cb
-Wwrite-strings: Constify warning_pre_print
-Wwrite-strings flags a warning here:
char *warning_pre_print = "\nwarning: ";
gdb/ChangeLog:
2017-04-05 Pedro Alves <palves@redhat.com>
* main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
the memory of the temporary warning_pre_print override.
* utils.c (warning_pre_print): Constify.
* utils.h (warning_pre_print): Constify.