https://bugs.winehq.org/show_bug.cgi?id=49708
Bug ID: 49708 Summary: wine-staging 5.15 fails to compile on GCC 4.9.2 with default flags (for loop initialization in mfplat-streaming-support) Product: Wine-staging Version: 5.15 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: o.dierick@piezo-forte.be CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Hello,
Using GCC 4.9.2 with default flags (=no CCFLAGS or custom options used), compiling wine-staging 5.15 fails with:
/media/wine-shares/git/dlls/mf/topology.c: In function ‘topology_loader_enumerate_output_types’: /media/wine-shares/git/dlls/mf/topology.c:1979:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (unsigned int i = 0; i < num_activates; i++) ^ /media/wine-shares/git/dlls/mf/topology.c:1979:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
That construct only appears in wine-staging patchset 'mfplat-streaming-support'.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49708
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |68c50a8fb4cbb402a2cd22b48b5 | |8852437104bd2 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Should be fixed by commit https://github.com/wine-staging/wine-staging/commit/68c50a8fb4cbb402a2cd22b4...
https://bugs.winehq.org/show_bug.cgi?id=49708
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing bugs fixed in Staging 5.19.