Skip to content

libwepmix: Fix use of possibly unassigned local variable 'data'

Rico Tzschichholz requested to merge wip/ricotz/vala into master

vala@bbaae364

http://ci.vala-project.org:8010/builders/vala-staging/builds/965/steps/simple-scan/logs/stdio

libwebpmux.vapi:65.17-65.38: error: use of possibly unassigned local variable `data'
                data.bytes = bitstream;
                ^^^^^^^^^^^^^^^^^^^^^^
libwebpmux.vapi:66.17-66.44: error: use of possibly unassigned local variable `data'
                data.size = bitstream.length;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libwebpmux.vapi:67.17-67.51: error: use of possibly unassigned local variable `data'
                return _set_image (data, copy_data);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libwebpmux.vapi:93.13-93.35: error: use of possibly unassigned local variable `data'
            data.bytes = chunk_data;
            ^^^^^^^^^^^^^^^^^^^^^^^
libwebpmux.vapi:94.13-94.41: error: use of possibly unassigned local variable `data'
            data.size = chunk_data.length;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
libwebpmux.vapi:95.13-95.65: error: use of possibly unassigned local variable `data'
            return _set_chunk ((uchar[]) fourcc, data, copy_data);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 6 error(s), 3 warning(s)

Merge request reports