[Mesa-dev] [PATCH] gallium/util: add missing u_debug include

Marek Olšák maraeo at gmail.com
Fri Sep 12 06:10:47 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Fri, Sep 12, 2014 at 10:31 AM, Andreas Boll
<andreas.boll.dev at gmail.com> wrote:
> Needed for assert.
> Fixes build on BE archs with -Werror=implicit-function-declaration.
>
> In file included from
> ../../../../../src/gallium/auxiliary/draw/draw_fs.c:30:0:
> ../../../../../src/gallium/auxiliary/util/u_math.h: In function
> 'util_memcpy_cpu_to_le32':
> ../../../../../src/gallium/auxiliary/util/u_math.h:810:4: error:
> implicit declaration of function 'assert'
> [-Werror=implicit-function-declaration]
>     assert(n % 4 == 0);
>         ^
>
> Cc: "10.3" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Andreas Boll <andreas.boll.dev at gmail.com>
> ---
>  src/gallium/auxiliary/util/u_math.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
> index 25bcfb5..39bd40f 100644
> --- a/src/gallium/auxiliary/util/u_math.h
> +++ b/src/gallium/auxiliary/util/u_math.h
> @@ -40,6 +40,7 @@
>
>
>  #include "pipe/p_compiler.h"
> +#include "util/u_debug.h"
>
>
>  #ifdef __cplusplus
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list