search

g++ and CRLFs

Recently, the version of gcc/g++ on the lab cluster was upgraded to 3.4.4 (I think from 3.3). I had to make some small changes to my code to make it compile on this new version, but it was nothing terribly complicated, and a pretty straightforward migration overall. However, I've been getting a strange warning since the upgrade:

In file ...
RDB_classes/VectorMatrix.h:574:39: warning: no newline at end of file

[full text after the cut, but basically it's the same thing 4 times]

This is even though I've added several blank lines at the end of the file, and tried messing around with the encoding to make sure there are both CRs and LFs.

Does this look familiar to anyone? And if so, what should I do about it?

I know it's only a warning and doesn't really impact anything, but I try to deal with all warnings so that I don't get into the habit of ignoring any of g++'s output.

The full text is:

In file included from RDB_classes/random.h:13,
   from RDB_classes/random.cpp:12,
   from main.cpp:10:
RDB_classes/VectorMatrix.h:574:39: warning: no newline at end of file
In file included from RDB_classes/../trial_management.cpp:13,
   from RDB_classes/../evaluation.cpp:11,
   from RDB_classes/Search.cpp:37,
   from main.cpp:11:
RDB_classes/../RDB_classes/VectorMatrix.h:574:39: warning: no newline at end of file
In file included from RDB_classes/../RDB_classes/TAgent.h:16,
   from RDB_classes/../RDB_classes/TAgent.cpp:13,
   from RDB_classes/../evaluation.cpp:15,
   from RDB_classes/Search.cpp:37,
   from main.cpp:11:
RDB_classes/../RDB_classes/VectorMatrix.h:574:39: warning: no newline at end of file
In file included from main.cpp:13:
RDB_classes/VectorMatrix.h:574:39: warning: no newline at end of file

Trackbacks

Trackback URL for this entry is: http://blog.case.edu/exg39/mt-tb.cgi/5443

Comments

Post a comment