[Mesa-dev] [PATCH kmscube] Makefile.am: Add -std=c99 to CFLAGS
Fabio Estevam
fabio.estevam at nxp.com
Tue Mar 21 13:04:13 UTC 2017
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 at 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
More information about the mesa-dev
mailing list