[hatari-devel] Compile error with latest sources

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi all,

With the latest sources I get this error on Linux with gcc 4.9.4:

/home/us/hatari/hatari/src/cpu/fpp.c: In function ‘fpu_null’:
/home/us/hatari/hatari/src/cpu/fpp.c:897:2: error: ‘for’ loop initial
declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < 8; i++)
  ^
/home/us/hatari/hatari/src/cpu/fpp.c:897:2: note: use option -std=c99,
-std=gnu99, -std=c11 or -std=gnu11 to compile your code
make[2]: *** [src/cpu/CMakeFiles/UaeCpu.dir/build.make:735:
src/cpu/CMakeFiles/UaeCpu.dir/fpp.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:429:
src/cpu/CMakeFiles/UaeCpu.dir/all] Error 2

Take care

Uwe



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/