[Mesa-dev] [PATCH v3] gallium/tests: fix build with clang compiler

2016-01-02 Thread Samuel Pitoiset
Nested functions are supported as an extension in GNU C, but Clang don't support them. This fixes compilation errors when (manually) building compute.c, or by setting --enable-gallium-tests to the configure script. Changes from v3: - refactor by introducing test_default_init() Changes from v2:

Re: [Mesa-dev] [PATCH v3] gallium/tests: fix build with clang compiler

2016-01-02 Thread eocallaghan
omg I don't know why folks insist on using gnuc nested functions they are insane. Thanks for working though this one! Reviewed-by: Edward O'Callaghan On 2016-01-03 04:20, Samuel Pitoiset wrote: Nested functions are supported as an extension in GNU C, but Clang