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]

Re: PATCH to C front-end: PR 21759


"Giovanni Bajo" <rasky@develer.com> writes:

| Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
| 
| > this patch is the first in a series for warning about ISO C constructs
| > that are outside the common subset of C and C++.  
| 
| I suggest to add different subflags for each specific warning:
| 
| -Wc++-compat-casts
| -Wc++-compat-keywords
| -Wc++-compat-enums
| [...]

Why would we do that?  If we're ever going to say that a code is in
the subset, what the reasons why we would not warn about keywords,
cast, enums?  I think we must not forget keeping the switches sizeable
(if we start properly categorizing Annex C and Annex D, we will end up
with quite a certain number of switches...)

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]