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 - C++ style comment causing spurious warnings
Summary: C++ style comment causing spurious warnings
Status: RESOLVED DUPLICATE of bug 474
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: Other Linux
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 18:26 UTC by Forrest Stonedahl
Modified: 2009-01-06 18:41 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 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 ***