mesa: Use STATIC_ASSERT whenever possible.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 12 Apr 2016 06:35:08 +0000 (07:35 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 12 Apr 2016 15:56:15 +0000 (16:56 +0100)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/imports.c

index 14cd58870f70c8a30d2ae73eea7e894b84f7196b..fe54109322d2a4f284d199839e936a0474836525 100644 (file)
@@ -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)