Commit c3651f3f authored by Andreas Roth's avatar Andreas Roth
Browse files

fix warning/error about uninitialized variables

parent 3aa83d80
Pipeline #119072 passed with stages
in 23 minutes and 35 seconds
......@@ -7950,7 +7950,7 @@ ast_interface_block::hir(exec_list *instructions,
"Interface block sets both readonly and writeonly");
}
unsigned qual_stream;
unsigned qual_stream = 0;
if (!process_qualifier_constant(state, &loc, "stream", this->layout.stream,
&qual_stream) ||
!validate_stream_qualifier(&loc, state, qual_stream)) {
......@@ -7961,14 +7961,14 @@ ast_interface_block::hir(exec_list *instructions,
return NULL;
}
unsigned qual_xfb_buffer;
unsigned qual_xfb_buffer = 0;
if (!process_qualifier_constant(state, &loc, "xfb_buffer",
layout.xfb_buffer, &qual_xfb_buffer) ||
!validate_xfb_buffer_qualifier(&loc, state, qual_xfb_buffer)) {
return NULL;
}
unsigned qual_xfb_offset;
unsigned qual_xfb_offset = 0;
if (layout.flags.q.explicit_xfb_offset) {
if (!process_qualifier_constant(state, &loc, "xfb_offset",
layout.offset, &qual_xfb_offset)) {
......@@ -7976,7 +7976,7 @@ ast_interface_block::hir(exec_list *instructions,
}
}
unsigned qual_xfb_stride;
unsigned qual_xfb_stride = 0;
if (layout.flags.q.explicit_xfb_stride) {
if (!process_qualifier_constant(state, &loc, "xfb_stride",
layout.xfb_stride, &qual_xfb_stride)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment