This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: add -Wno-overlength-strings
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Zack Weinberg <zackw at panix dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 27 Jan 2006 08:18:22 -0600
- Subject: Re: patch: add -Wno-overlength-strings
- References: <20060127043022.GA5589@panix.com>
Zack Weinberg <zackw@panix.com> writes:
[...]
| Bernd pre-approved this patch, but I'd like another pair of eyes
| on some bits: my wording in the manual, and the justification for
| not issuing this warning in C++.
C++, unlike C, imposes no standard minimum limits.
[...]
| ==================================================================
| --- c-opts.c (revision 110316)
| +++ c-opts.c (local)
| @@ -893,6 +893,8 @@ c_common_handle_option (size_t scode, co
| cpp_opts->warn_endif_labels = 1;
| if (warn_pointer_sign == -1)
| warn_pointer_sign = 1;
| + if (warn_overlength_strings == -1)
should not this be
if (warn_overlength_strings == -1 && !c_dialect_cxx())
?
-- Gaby