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: Wmissing-parameter-type (PR7651 Define -Wextra strictly in terms of other warning flags)


"Manuel López-Ibáñez" <lopezibanez@gmail.com> writes:
> I would say that it is not a new warning but...whatever, OK, I
> withdraw the patch and I will resubmit with its corresponding new
> testcases.

It's not a new warning, but it is a new *option*.  You'll need test
cases that test various cases:

1. No option specified
2. Option on (warn), option off (no warn)
3. Option on, marked as an error, marked as a warning overriding -Werror

etc.

It's the command line processing that you're testing, not just the
code that recognizes the warning in the code.


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