From 5a339679321acc5b660b35e4f034758908db30d0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 14 Mar 2015 09:48:08 -0700 Subject: [PATCH] nir: Use zero-length arrays instead of unsized arrays --- src/glsl/nir/nir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 669a26e..2e5027e 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -661,7 +661,7 @@ typedef struct nir_alu_instr { nir_instr instr; nir_op op; nir_alu_dest dest; - nir_alu_src src[]; + nir_alu_src src[0]; } nir_alu_instr; /* is this source channel used? */ @@ -810,7 +810,7 @@ typedef struct { nir_deref_var *variables[2]; - nir_src src[]; + nir_src src[0]; } nir_intrinsic_instr; /** -- 2.3.2