projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f29d39
)
r300g: Silence 'control reaches end of non-void function' warning.
author
Vinson Lee
<vlee@vmware.com>
Wed, 2 Mar 2011 08:43:09 +0000
(
00:43
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 2 Mar 2011 08:43:09 +0000
(
00:43
-0800)
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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_hyperz.c
b/src/gallium/drivers/r300/r300_hyperz.c
index 75e6e535519cac34140b39a0f7f6729a4c3794bc..ecaadf4af8ebae50df511b60dc0c708f18f8bc36 100644
(file)
--- 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;
}
}