Commit 6cbd03ab authored by Fabio Estevam's avatar Fabio Estevam Committed by Eric Engestrom

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: 's avatarFabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: 's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent e72f8544
......@@ -33,6 +33,7 @@ kmscube_LDADD = \
kmscube_CFLAGS = \
-O0 -g \
-Wall -Wextra \
-std=c99 \
$(DRM_CFLAGS) \
$(GBM_CFLAGS) \
$(EGL_CFLAGS) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment