Extra characters on preprocessor line - error or warning?

S

Spiro Trikaliotis

Hello,

on a project on which I am working, someone checked in the following
line:

#include "menu_snapshot.h"f

Notice the extra "f" at the end of the line.

The compiler (gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21))
issued a warning "only":

warning: extra tokens at end of #include directive

I was surprised, as I would have expected this to require a fatal
diagnostic.

Was my expectation wrong?

Regards,
Spiro.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top