[Mesa-dev] [PATCH] intel: compiler: silence compiler warning
Iago Toral
itoral at igalia.com
Wed Apr 4 09:06:34 UTC 2018
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
On Tue, 2018-04-03 at 15:41 +0100, Lionel Landwerlin wrote:
> ../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]
>
> Introduced by 8f83eea71e233 ("i965: Add negative_equals methods").
>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
> src/intel/compiler/brw_reg.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/intel/compiler/brw_reg.h
> b/src/intel/compiler/brw_reg.h
> index 68158cc0cc8..afcd146de2c 100644
> --- a/src/intel/compiler/brw_reg.h
> +++ b/src/intel/compiler/brw_reg.h
> @@ -293,6 +293,7 @@ brw_regs_negative_equal(const struct brw_reg *a,
> const struct brw_reg *b)
> case BRW_REGISTER_TYPE_UB:
> case BRW_REGISTER_TYPE_B:
> case BRW_REGISTER_TYPE_NF:
> + default:
> unreachable("not reached");
> }
> } else {
More information about the mesa-dev
mailing list