Mesa (master): r300g: Silence 'control reaches end of non-void function' warning.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Mar 2 08:44:37 UTC 2011
Module: Mesa
Branch: master
Commit: bbd9616838623c637e5f24bef62c068e2c9c3775
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbd9616838623c637e5f24bef62c068e2c9c3775
Author: Vinson Lee <vlee at vmware.com>
Date: Wed Mar 2 00:43:09 2011 -0800
r300g: Silence 'control reaches end of non-void function' warning.
Fixes this GCC warning.
r300_hyperz.c: In function 'r300_get_hiz_func':
r300_hyperz.c:65: warning: control reaches end of non-void function
---
src/gallium/drivers/r300/r300_hyperz.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c
index 75e6e53..ecaadf4 100644
--- a/src/gallium/drivers/r300/r300_hyperz.c
+++ b/src/gallium/drivers/r300/r300_hyperz.c
@@ -61,6 +61,10 @@ static enum r300_hiz_func r300_get_hiz_func(struct r300_context *r300)
case PIPE_FUNC_GREATER:
case PIPE_FUNC_GEQUAL:
return HIZ_FUNC_MIN;
+
+ default:
+ assert(0);
+ return HIZ_FUNC_NONE;
}
}
More information about the mesa-commit
mailing list