This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix "make test-cp-name-parser"
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 08 Nov 2017 10:49:55 -0500
- Subject: [binutils-gdb] Fix "make test-cp-name-parser"
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 2a1dde5da23779fd0d269c3e51c7814aba9001dd ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 2a1dde5da23779fd0d269c3e51c7814aba9001dd
Fix "make test-cp-name-parser"
src/gdb/cp-name-parser.y: In function int main(int, char**):
src/gdb/cp-name-parser.y:2132:30: error: ISO C++ forbids converting a string constant to char* [-Werror=write-strings]
char *str2, *extra_chars = "", c;
^
Simply don't initialize the variable, it's not necessary.
gdb/ChangeLog:
2017-11-08 Pedro Alves <palves@redhat.com>
* cp-name-parser.y (main): Don't initialize extra_chars.
- Follow-Ups:
- Failures on Fedora-x86_64-m64, branch master
- Failures on Fedora-x86_64-native-gdbserver-m32, branch master
- *** COMPILATION FAILED *** Failures on Fedora-i686, branch master *** BREAKAGE ***
- Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch master
- Failures on Fedora-x86_64-cc-with-index, branch master
- Failures on Fedora-s390x-m64, branch master
- Failures on Ubuntu-AArch64-m64, branch master
- Failures on Fedora-x86_64-m32, branch master
- *** COMPILATION FAILED *** Failures on Ubuntu-AArch32-m32, branch master *** BREAKAGE ***
- *** COMPILATION FAILED *** Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, branch master *** BREAKAGE ***
- *** COMPILATION FAILED *** Failures on Ubuntu-AArch32-native-gdbserver-m32, branch master *** BREAKAGE ***