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 2416

Summary: compile error about __func__
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   

Description Martin Gerhardy 2014-02-23 18:22:56 UTC
src/libs/SDL/src/video/SDL_video.c: In function 'SDL_GetWindowWMInfo_REAL':
src/libs/SDL/src/video/SDL_video.c:3108:158: error: expected ')' before '__func__'


SDL_SetError("Invalid window: " __func__); \
 should for example be:
SDL_SetError("Invalid window: %s", __func__); \
Comment 1 Sam Lantinga 2014-02-23 18:26:58 UTC
I don't see __func__ in the code in Mercurial. Ryan, you were talking about adding an assert to that macro. Do you know what's happening here?
Comment 2 Martin Gerhardy 2014-02-23 18:34:16 UTC
f**k - silly me. that was a local change that i forgot to revert before doing the pull.