This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [1/2] PR 78736: New warning -Wenum-conversion
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- Cc: Martin Sebor <msebor at gmail dot com>, gcc Patches <gcc-patches at gcc dot gnu dot org>, Marek Polacek <polacek at redhat dot com>
- Date: Mon, 12 Jun 2017 20:17:19 +0000
- Subject: Re: [1/2] PR 78736: New warning -Wenum-conversion
- Authentication-results: sourceware.org; auth=none
- References: <CAAgBjM=S2EjhqVize+nBjgb_aCd3m+TqdOEp7XBC6hfcm-6tDw@mail.gmail.com> <2b846ba2-2ac0-e387-9928-891bcc8d79af@gmail.com> <CAAgBjMnwWMW378HZyHorO6ohbBQ5c2SGiyOeQ+qHixSL=2aOFg@mail.gmail.com> <CAAgBjMnithBB0WKerdbRFp8zs01bzXS7an8UvPQcjAYBPMo57g@mail.gmail.com> <4bf960f7-440a-1305-e1ac-c744c53a50f9@gmail.com> <CAAgBjMncv6PaEYZ2-vtp1d7HYo-W_wyV1jxoEqwoB+qiZEQjZQ@mail.gmail.com>
This is OK with one fix:
> +C ObjC Var(warn_enum_conversion) Init(0) Warning LangEnabledBy(C Objc,Wall)
I believe the LangEnabledBy arguments are case-sensitive, so you need to
have ObjC not Objc there for it to work correctly. (*.opt parsing isn't
very good at detecting typos and giving errors rather than silently
ignoring things.)
--
Joseph S. Myers
joseph@codesourcery.com