[Mesa-dev] [Bug 89978] nine_state.c:1440: error: unknown field ‘m’ specified in initializer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 12 08:29:58 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89978

--- Comment #3 from Emil Velikov <emil.l.velikov at gmail.com> ---
(In reply to David Heidelberg (okias) from comment #2)
> Created attachment 115012 [details] [review]
> 0001-st-nine-require-gcc-4.6.patch
> 
> This is clearly GCC bug[1], should be fixed since GCC 4.6 which every sane
> X86 & X86_64 distribution will use.
> 
Just because there is a bug opened about it with GCC that does not make it a
GCC bug :-\ The code is using C11 functionality so it's hard to blame the
compiler considering that we use -std=c99

> Personally I don't see any reason to fix it differently, than raise
> configure.ac requirement for Nine to >= gcc 4.6.
> 
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676
>
Imho a better solution would be to add -fms-extensions to the CFLAGS. This will
enable anonymous struct/unions and keep things working for pre 4.6 versions of
GCC.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150412/ca6e1178/attachment.html>


More information about the mesa-dev mailing list