summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-14 00:08:45 -0700
committerVinson Lee <[email protected]>2010-09-14 00:08:45 -0700
commit45ee8463a2a771c68b8146c87fa582a004dfde5e (patch)
tree38c32a36ac72f15f9a4d0707db501241b7a4a12a /src/gallium/drivers/i965
parent706380cf7da3d376b22bc32cb5decfb66665053d (diff)
i965g: Fix 'control reaches end of non-void function' warning.
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
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.c b/src/gallium/drivers/i965/brw_screen.c
index 23599806197..864b21fa53c 100644
--- 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;
}
}