gallium/tests: fix build with clang compiler
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Nov 2015 00:19:16 +0000 (01:19 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 3 Jan 2016 11:18:00 +0000 (12:18 +0100)
commit6a49fcfb1f28b563b89f2b37e82d9f87c0671228
treefcb867cd0d05b69138c962041f0a50e84d3865bd
parent53dddab78c9bc7fbfd78bf23284ec6d92b70e93b
gallium/tests: fix build with clang compiler

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.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75165
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/tests/trivial/compute.c