mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 18:08:15 +02:00
Fixes a giant pile of GCC warnings:
builtin_types.cpp:60:1: warning: missing initializer for member 'glsl_struct_field::stream' [-Wmissing-field-initializers]
I had to add a default constructor because a non-default constructor
was added. Otherwise the only constructor would be the one with
parameters, and all the plases like
glsl_struct_field foo;
would fail to compile.
I wanted to do this in two patches. All of the initializers of
glsl_struct_field structures had to be converted to use the
constructor because C++ apparently forces you to do one or the other:
builtin_types.cpp:61:1: error: could not convert '{glsl_type::float_type, "near", -1, 0, 0, 0, GLSL_MATRIX_LAYOUT_INHERITED, 0, -1}' from '<brace-enclosed initializer list>' to 'glsl_struct_field'
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
|
||
|---|---|---|
| .. | ||
| lower_jumps | ||
| .gitignore | ||
| blob_test.c | ||
| builtin_variable_test.cpp | ||
| compare_ir | ||
| copy_constant_to_storage_tests.cpp | ||
| general_ir_test.cpp | ||
| invalidate_locations_test.cpp | ||
| optimization-test | ||
| sampler_types_test.cpp | ||
| set_uniform_initializer_tests.cpp | ||
| sexps.py | ||
| uniform_initializer_utils.cpp | ||
| uniform_initializer_utils.h | ||
| varyings_test.cpp | ||