nir: Try to warn when C99 extensions are used in nir headers.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 28 Apr 2016 11:25:15 +0000 (12:25 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Thu, 28 Apr 2016 15:48:13 +0000 (16:48 +0100)
commit99474dc29b0f45413d0e538d7321da9ad4c9f6f5
treed3053fc83203559dd5bdfc40bcc0cd7b77018333
parente7438009afe5d0372fa1c89c2d3407234662521b
nir: Try to warn when C99 extensions are used in nir headers.

Ideally we'd have nir.h being included with -Wpedantic too, but it fails
with:

src/compiler/nir/nir.h:754:20: warning: ISO C++ forbids zero-size array ‘src’ [-Wpedantic]
    nir_alu_src src[];
                    ^
In file included from src/compiler/nir/glsl_to_nir.cpp:42:0:
src/compiler/nir/nir.h:919:16: warning: ISO C++ forbids zero-size array ‘src’ [-Wpedantic]
    nir_src src[];

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/glsl_to_nir.cpp