[Mesa-dev] [PATCH 1/4] mesa: Use STATIC_ASSERT whenever possible.
Eric Engestrom
eric.engestrom at imgtec.com
Tue Apr 12 12:32:14 UTC 2016
Good idea!
For the whole series:
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
On Tue, Apr 12, 2016 at 07:37:43AM +0100, Jose Fonseca wrote:
> ---
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list