diff options
author | Brian Paul <[email protected]> | 2017-05-22 06:52:45 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-05-25 10:35:11 -0600 |
commit | 12dc84336723d3f156195a6a0473ed151cfb8395 (patch) | |
tree | 19ad2271db78b41ca135c7690e0b7cfa5e383656 /src/compiler | |
parent | f94cfdc5f2724d7fc92ad1c5d2127b884e7892ff (diff) |
glsl: Fix g++ initializer order warning
Fixes this warning:
In file included from ../../../src/compiler/glsl/ir.cpp:25:0:
../../../src/compiler/glsl/ir.h: In constructor 'ir_swizzle::ir_swizzle(ir_rvalue*, ir_swizzle_mask)':
../../../src/compiler/glsl/ir.h:1955:20: warning: 'ir_swizzle::mask' will be initialized after [-Wreorder]
ir_swizzle_mask mask;
^
../../../src/compiler/glsl/ir.h:1954:15: warning: 'ir_rvalue* ir_swizzle::val' [-Wreorder]
ir_rvalue *val;
^
../../../src/compiler/glsl/ir.cpp:1592:1: warning: when initialized here [-Wreorder]
ir_swizzle::ir_swizzle(ir_rvalue *val, ir_swizzle_mask mask)
^
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 2d0c4c051ab..78889bd6d3f 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -1590,7 +1590,7 @@ ir_swizzle::ir_swizzle(ir_rvalue *val, const unsigned *comp, } ir_swizzle::ir_swizzle(ir_rvalue *val, ir_swizzle_mask mask) - : ir_rvalue(ir_type_swizzle), mask(mask), val(val) + : ir_rvalue(ir_type_swizzle), val(val), mask(mask) { this->type = glsl_type::get_instance(val->type->base_type, mask.num_components, 1); |