projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95cb6d3
)
r600g: Silence 'control reaches end of non-void function' warning.
author
Vinson Lee
<vlee@vmware.com>
Sat, 25 Sep 2010 06:48:05 +0000
(23:48 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 25 Sep 2010 06:48:05 +0000
(23:48 -0700)
Fixes this GCC warning.
r600_hw_states.c: In function 'r600_translate_fill':
r600_state_inlines.h:136: warning: control reaches end of non-void function
src/gallium/drivers/r600/r600_state_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_state_inlines.h
b/src/gallium/drivers/r600/r600_state_inlines.h
index a9e7619bf35dd4e4ee036a42d4a54468d29522e6..81ce1bb19003d0a90283c79838f434649044a545 100644
(file)
--- a/
src/gallium/drivers/r600/r600_state_inlines.h
+++ b/
src/gallium/drivers/r600/r600_state_inlines.h
@@
-132,6
+132,9
@@
static INLINE uint32_t r600_translate_fill(uint32_t func)
return 1;
case PIPE_POLYGON_MODE_POINT:
return 0;
+ default:
+ assert(0);
+ return 0;
}
}