| 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 | ||
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!