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 - compile error about __func__
Summary: compile error about __func__
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 18:22 UTC by Martin Gerhardy
Modified: 2014-02-23 18:34 UTC (History)
0 users

See Also:


Attachments

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