[Mesa-dev] [PATCH 1/4] mesa: Use STATIC_ASSERT whenever possible.

Jose Fonseca jfonseca at vmware.com
Tue Apr 12 06:37:43 UTC 2016


---
 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)
-- 
2.5.0



More information about the mesa-dev mailing list