[Mesa-dev] [PATCH 7/9] glsl: Make foreach macros usable from C by adding struct keyword.

Patrick Baggett baggett.patrick at gmail.com
Tue Jun 10 12:18:55 PDT 2014


>
>
> Yep, no new warnings.
>
> I tried a little test program
> % cat t.cpp
> class asdf {
>     int x;
> };
>
> void f() {
>     asdf a;
>     struct asdf b;
>     class asdf c;
> }
>
C++ never ceases to amaze.


> and I can't make it generate warnings (other than unused variables)
> regardless of whether I define asdf as a class or a struct.
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140610/16a88d50/attachment.html>


More information about the mesa-dev mailing list