[Piglit] [PATCH 1/2] android: file compile errors w shader_runner.c

Tom Gall tom.gall at linaro.org
Fri Feb 1 14:13:31 PST 2013


On Android -Werror=return-type is set for C code, as such there
are two cases were I've added a return 0 after an assert.

Signed-off-by: Tom Gall <tom.gall at linaro.org>
---
 tests/shaders/shader_runner.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index d83228e..20f1ee0 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -351,6 +351,7 @@ compare(float ref, float value, enum comparison cmp)
 	}
 
 	assert(!"Should not get here.");
+	return 0;
 }
 
 
@@ -370,6 +371,7 @@ comparison_string(enum comparison cmp)
 	}
 
 	assert(!"Should not get here.");
+	return 0;
 }
 
 
-- 
1.7.10.4



More information about the Piglit mailing list