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 671

Summary: C++ style comment causing spurious warnings
Product: SDL Reporter: Forrest Stonedahl <fsondahl>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: don't know   
Hardware: Other   
OS: Linux   

Description Forrest Stonedahl 2009-01-06 18:26:11 UTC
In Ubuntu, I installed the package libsdl1.2-dev.
When compiling something that uses SDL using GCC, I'm getting hundreds of errors like this:

In file included from /usr/include/SDL/SDL_rwops.h:33,
                 from /usr/include/SDL/SDL_audio.h:33,
                 from /usr/include/SDL/SDL.h:30,
                 from share/image.h:4,
                 from ball/level.c:21:
/usr/include/SDL/begin_code.h:94:8: warning: extra tokens at end of #endif directive

They're all caused by one little mistake on line 94 of begin_code.h,

>> #endif //__SYMBIAN32__

where someone accidentally used a C++ // comment, rather than a C-style /* */ comment.  So it'd be fine for C++, but gives warnings for C.

I'd guess you've probably already fixed this.  But if not, I just thought I'd let you know.  Thanks for all the good work you do!
Comment 1 Ryan C. Gordon 2009-01-06 18:41:48 UTC
This is already fixed in revision control, thanks!

--ryan.

*** This bug has been marked as a duplicate of bug 474 ***