This shuts the compiler up about reaching the end of a non-void function:

In file included from compiler/brw_shader.h:28:0,
                 from compiler/brw_cfg.h:31,
                 from compiler/brw_shader.cpp:24:
compiler/brw_reg.h: In function 'bool brw_regs_negative_equal(const brw_reg*,
const brw_reg*)':
compiler/brw_reg.h:305:1: warning: control reaches end of non-void function
[-Wreturn-type]

Signed-off-by: Tobias Klausmann <tobias.johannes.klausm...@mni.thm.de>
---
 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 68158cc0cc..6b10d05e12 100644
--- a/src/intel/compiler/brw_reg.h
+++ b/src/intel/compiler/brw_reg.h
@@ -302,6 +302,7 @@ brw_regs_negative_equal(const struct brw_reg *a, const 
struct brw_reg *b)
 
       return brw_regs_equal(&tmp, b);
    }
+   unreachable("not reached");
 }
 
 struct brw_indirect {
-- 
2.16.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to