diff options
author | Vinson Lee <[email protected]> | 2017-02-13 17:52:59 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2017-02-24 16:04:06 -0800 |
commit | c3f9540a0cee99b0fcaf1f17d485e669c1e293e0 (patch) | |
tree | d85e8310a00db102977e69250e1bcba3626b7fa7 /src | |
parent | c7878b0167bb7e652973c208e172b93c00956a1c (diff) |
glsl: Fix missing-braces warning.
CXX glsl/ast_to_hir.lo
glsl/ast_to_hir.cpp: In member function 'virtual ir_rvalue* ast_declarator_list::hir(exec_list*, _mesa_glsl_parse_state*)':
glsl/ast_to_hir.cpp:4846:42: warning: missing braces around initializer for 'unsigned int [16]' [-Wmissing-braces]
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Andres Gomez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 88febe7ff3f..db48cf81134 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -4849,7 +4849,7 @@ ast_declarator_list::hir(exec_list *instructions, if ((var->data.mode == ir_var_auto || var->data.mode == ir_var_temporary) && (var->type->is_numeric() || var->type->is_boolean()) && state->zero_init) { - const ir_constant_data data = {0}; + const ir_constant_data data = { { 0 } }; var->data.has_initializer = true; var->constant_initializer = new(var) ir_constant(var->type, &data); } |