summaryrefslogtreecommitdiffstats
path: root/src/glx/apple/meson.build
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2018-03-29 11:29:09 -0700
committerIan Romanick <[email protected]>2018-04-06 15:22:10 -0700
commit81ed629b385af62bbac2d7975986ea7ad4ed2d1a (patch)
tree58d7cc9338ddb8790ff9378be6a7f6569a4b2fac /src/glx/apple/meson.build
parent39240926cd45519f35a6fa576c387f727b057aa1 (diff)
intel/compiler: Explicitly cast register type in switch
brw_reg::type is "enum brw_reg_type type:4". For whatever reason, GCC is treating this as an int instead of an enum. As a result, it doesn't detect missing switch cases and it doesn't detect that flow can get out of the switch. This silences the warning: src/intel/compiler/brw_reg.h: In function ‘bool brw_regs_negative_equal(const brw_reg*, const brw_reg*)’: src/intel/compiler/brw_reg.h:305:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/glx/apple/meson.build')
0 files changed, 0 insertions, 0 deletions