i915g: Fix 'control reaches end of non-void function' warning.
authorVinson Lee <vlee@vmware.com>
Tue, 14 Sep 2010 06:58:42 +0000 (23:58 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 14 Sep 2010 06:58:42 +0000 (23:58 -0700)
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

index 98f1e70..a3e7c5c 100644 (file)
@@ -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;
    }
 }