We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3647

Summary: Build failure src/video/SDL_blit_N.c caused by configure script adding to the CLFAGS -Werror=declaration-after-statement
Product: SDL Reporter: santiago
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: 2.0.5   
Hardware: PowerPC   
OS: Linux   

Description santiago 2017-05-11 20:51:54 UTC
src/video/SDL_blit_N.c on line 127 has statements following declaration in the function calc_swizzle32(). This causes a build failure since the configure script and the configure.in adds -Werror=declaration-after-statement to the CFLAGS. Problem while building SDL-2.0.5 on Fedora Core 20 on powerpc64 with GCC-4.8.3.

Error:

/mnt/centshare/vfurnace/dev/orthrus/master/build/linux-ppc64/build/phase3/sdl2/orthrus-sdl2/build/sdl2/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
Comment 1 Ryan C. Gordon 2017-06-06 17:02:17 UTC
This was fixed in https://hg.libsdl.org/SDL/rev/5184186d4366

--ryan.