From: Jose Fonseca Date: Tue, 12 Apr 2016 06:35:08 +0000 (+0100) Subject: mesa: Use STATIC_ASSERT whenever possible. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7279098dc58d2d9d533900f1607aee76fcbbdab0;p=mesa.git mesa: Use STATIC_ASSERT whenever possible. Reviewed-by: Eric Engestrom Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 14cd58870f7..fe54109322d 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)