This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ping * 2] PR78736: New C warning -Wenum-conversion
- From: Jeff Law <law at redhat dot com>
- To: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>, gcc Patches <gcc-patches at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>, Marek Polacek <polacek at redhat dot com>
- Date: Thu, 29 Jun 2017 16:04:05 -0600
- Subject: Re: [ping * 2] PR78736: New C warning -Wenum-conversion
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=law at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8593A85541
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8593A85541
- References: <CAAgBjM=Sradah=zUhcyBAbeTWVXP9z0yHXjaEqyLAORbKvkrAw@mail.gmail.com>
On 05/23/2017 07:54 AM, Prathamesh Kulkarni wrote:
> Hi,
> I would like to ping this patch for review:
> https://gcc.gnu.org/ml/gcc-patches/2017-05/msg00775.html
So was there any kind of resolution on the case in libcomp where we had
an assignment between two essentially equivalent, but distinct enums?
Aren't we going to trip over that if this is in -Wall? And if so and we
wanted to keep this in -Wall, then don't we need a cast here?
Jeff