Silence class vs. struct warnings (vec)

Oleg Endo oleg.endo@t-online.de
Thu Dec 5 09:00:00 GMT 2013


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?

Cheers,
Oleg

gcc/ChangeLog:
        * vec.h (struct vec_prefix): Use struct vec instead of class 
	vec.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_vec.patch
Type: text/x-patch
Size: 310 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131205/68bd6515/attachment.bin>


More information about the Gcc-patches mailing list