This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I bumpted into a small issue when trying to compile binutils with -Wc++-compat using gcc (GCC) 4.5.0 20090920. In file included from ../trunk/libiberty/regex.c:638:0: ../trunk/libiberty/regex.c: In function 'byte_re_match_2_internal': ../trunk/libiberty/regex.c:7476:5: warning: jump skips variable initialization ../trunk/libiberty/regex.c:5952:12: note: label 'restore_best_regs' defined here ../trunk/libiberty/regex.c:5913:16: note: 'same_str_p' declared here This patch splits the declaration and initial assignment to avoid the warning. Thanks, Martin
Attachment:
regex.cpp-compat.changelog.txt
Description: Text document
Attachment:
regex.cpp-compat.patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |