Mesa (master): mesa: Use STATIC_ASSERT whenever possible.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Apr 12 15:56:30 UTC 2016
Module: Mesa
Branch: master
Commit: 7279098dc58d2d9d533900f1607aee76fcbbdab0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7279098dc58d2d9d533900f1607aee76fcbbdab0
Author: Jose Fonseca <jfonseca at vmware.com>
Date: Tue Apr 12 07:35:08 2016 +0100
mesa: Use STATIC_ASSERT whenever possible.
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
src/mesa/main/imports.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 14cd588..fe54109 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -262,7 +262,7 @@ ffsll(long long int val)
{
int bit;
- assert(sizeof(val) == 8);
+ STATIC_ASSERT(sizeof(val) == 8);
bit = ffs((int) val);
if (bit != 0)
More information about the mesa-commit
mailing list