Currently the following build errors are seen on mips64el: cube-tex.c: In function 'get_fd_rgba': cube-tex.c:230:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < texh; i++) { ^ cube-tex.c:230:2: note: use option -std=c99 or -std=gnu99 to compile your code cube-tex.c: In function 'get_fd_y': cube-tex.c:261:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < texh; i++) { ^ cube-tex.c: In function 'get_fd_uv': cube-tex.c:292:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint32_t i = 0; i < texh/2; i++) { ^
Add the -std=c99 option in CFLAGS to fix this problem. Signed-off-by: Fabio Estevam <fabio.este...@nxp.com> --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index b0467f8..0c29b39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,6 +33,7 @@ kmscube_LDADD = \ kmscube_CFLAGS = \ -O0 -g \ -Wall -Wextra \ + -std=c99 \ $(DRM_CFLAGS) \ $(GBM_CFLAGS) \ $(EGL_CFLAGS) \ -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev