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 - Build failure src/video/SDL_blit_N.c caused by configure script adding to the CLFAGS -Werror=declaration-after-statement
Summary: Build failure src/video/SDL_blit_N.c caused by configure script adding to the...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.5
Hardware: PowerPC Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-11 20:51 UTC by santiago
Modified: 2017-06-06 17:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.