From 6cbd03ab94066dddbba7bedfde87c7c4319c18d5 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 21 Mar 2017 10:04:13 -0300 Subject: Makefile.am: Add -std=c99 to CFLAGS 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 Reviewed-by: Eric Engestrom --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index b0467f8..270b760 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) \ -- cgit v1.2.3