Skip to content

[1.22] Reassure gcc 9 that variables are not uninitialized

Simon McVittie requested to merge wip/smcv/uninitialized into cogl-1.22
  • gles: Reassure compiler that uninitialized variables are not reached

    gcc 9 detects that if we exit this switch due to an unsupported pixel format, the variables that it sets will remain uninitialized, causing compilation with -Werror=uninitialized to fail. Treat invalid pixel formats the same as the ones that are already unsupported.

  • tests: Reassure compiler that uninitialized variables are not reached

    gcc 9 detects that if we exit this switch due to an unsupported cull mode, the variables that it sets will remain uninitialized, causing compilation with -Werror=uninitialized to fail.

Merge request reports