Mesa (glsl2): glsl: Silence gcc warning " control reaches end of non-void function".
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sat Aug 14 14:17:48 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 4b1721eaf35ccb60d90850ab34a99d6ab1f89a05
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b1721eaf35ccb60d90850ab34a99d6ab1f89a05
Author: José Fonseca <jfonseca at vmware.com>
Date: Sat Aug 14 14:40:39 2010 +0100
glsl: Silence gcc warning "control reaches end of non-void function".
---
src/glsl/ir_clone.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index a726096..0a9e25a 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -335,7 +335,7 @@ ir_constant::clone(void *mem_ctx, struct hash_table *ht) const
}
default:
- assert(!"Should not get here."); break;
+ assert(!"Should not get here.");
return NULL;
}
}
More information about the mesa-commit
mailing list