Mesa (master): i915g: Fix 'control reaches end of non-void function' warning.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Sep 14 06:59:56 UTC 2010
Module: Mesa
Branch: master
Commit: 706380cf7da3d376b22bc32cb5decfb66665053d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=706380cf7da3d376b22bc32cb5decfb66665053d
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Sep 13 23:58:42 2010 -0700
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
---
src/gallium/drivers/i915/i915_screen.c | 3 ++-
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 98f1e70..a3e7c5c 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;
}
}
More information about the mesa-commit
mailing list