This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Coding rule enforcement
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, richard dot guenther at gmail dot com
- Date: Thu, 17 Sep 2015 17:57:51 +0300
- Subject: Re: [C++] Coding rule enforcement
- Authentication-results: sourceware.org; auth=none
>>>+ else if (warn_multiple_inheritance)
>>>+ warning (OPT_Wmultiple_inheritance,
>>>+ "%qT defined with multiple direct bases", ref);
>>You don't need to guard the warning with a check of the warning flag; warning
>>will only give the warning if the option is enabled.
>the spelling mistake on the option I used to experiment on didn't help, but I >discovered one must have the Var clause in the options file too, which I didn't expect.
>Anyway, fixed now. ok?
Note that there are a couple of places where 'namespace' is misspelled
as 'namepace' in the patch.