Skip to content

glsl: Get rid of null check warnings with GCC 12

Faith Ekstrand requested to merge gfxstrand/mesa:glsl/null-check-warn into main

The implementations of as_TYPE() for various GLSL IR types have assert(this != NULL) which GCC complains about starting with version 12. These asserts do actually seem reasonable since an assert is better than just exploding so throw a pragma around it to shut up GCC.

Merge request reports