summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-03-21 10:04:13 -0300
committerEric Engestrom <eric.engestrom@imgtec.com>2017-03-21 13:42:32 +0000
commit6cbd03ab94066dddbba7bedfde87c7c4319c18d5 (patch)
tree378f542e83c667f0fd934dfb038c5222e3fab3ae
parente72f85440be6bf6a773e59c2ab0fa47b8d34b94d (diff)
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 <fabio.estevam@nxp.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
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) \