summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-13 23:58:42 -0700
committerVinson Lee <vlee@vmware.com>2010-09-13 23:58:42 -0700
commit706380cf7da3d376b22bc32cb5decfb66665053d (patch)
treec6aad7786eb03f09ed7cfd1b38b685e628b45775 /src/gallium/drivers/i915
parentd4d48c0579f7eb8d889ad325e8f1c9b4a95f6ed7 (diff)
i915g: Fix 'control reaches end of non-void function' warning.
Fixes the following GCC warning. i915_screen.c: In function 'i915_get_shader_param': i915_screen.c:184: warning: control reaches end of non-void function
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c
index 98f1e7012f..a3e7c5c577 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -179,7 +179,8 @@ i915_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sha
case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
return 0;
default:
- break;
+ assert(0);
+ return 0;
}
}