projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706380c
)
i965g: Fix 'control reaches end of non-void function' warning.
author
Vinson Lee
<vlee@vmware.com>
Tue, 14 Sep 2010 07:08:45 +0000
(
00:08
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 14 Sep 2010 07:08:45 +0000
(
00:08
-0700)
Fixes the following GCC warning.
brw_screen.c: In function 'brw_get_shader_param':
brw_screen.c:241: warning: control reaches end of non-void function
src/gallium/drivers/i965/brw_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i965/brw_screen.c
b/src/gallium/drivers/i965/brw_screen.c
index 2359980619784716298820155535d1f5ca5f52d2..864b21fa53c3cab0cdee1c41c3fea240ef3f0c47 100644
(file)
--- a/
src/gallium/drivers/i965/brw_screen.c
+++ b/
src/gallium/drivers/i965/brw_screen.c
@@
-236,7
+236,8
@@
brw_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_shad
case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
return 1;
default:
- break;
+ assert(0);
+ return 0;
}
}