This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Silence class vs. struct warnings (vec)
- From: pinskia at gmail dot com
- To: Oleg Endo <oleg dot endo at t-online dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 5 Dec 2013 01:11:22 -0800
- Subject: Re: Silence class vs. struct warnings (vec)
- Authentication-results: sourceware.org; auth=none
- References: <1386234010 dot 14008 dot 18 dot camel at yam-132-YW-E178-FTW>
> On Dec 5, 2013, at 1:00 AM, Oleg Endo <oleg.endo@t-online.de> wrote:
>
> Hi,
>
> When building GCC on OSX with its native XCode/Clang tools, it outputs
> quite some "struct X was previously declared as a class" or similar
> warnings (-Wmismatched-tags is enabled by default).
>
> The attached patch fixes a mismatch in struct vec_prefix when referring
> to struct vec.
>
> Tested with make all-gcc.
> OK for trunk?
What is this warning trying to do really? I think this is a very bad warning as points out standard code for no reason.
Thanks,
Andrew
>
> Cheers,
> Oleg
>
> gcc/ChangeLog:
> * vec.h (struct vec_prefix): Use struct vec instead of class
> vec.
> <class_vec.patch>