Boost C++ Libraries: Ticket #7353: no newline at end of file https://svn.boost.org/trac10/ticket/7353 <p> Dears, </p> <p> Some Boost packages causes flood of warnings "no newline at end of file" on gcc compiler. </p> <p> As example: </p> <pre class="wiki">Line 15773: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15788: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15800: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15815: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15830: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15845: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15860: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15875: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_fwd.hpp:21:7: warning: no newline at end of file Line 15931: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 15945: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: In file included from ../../../../externals/boost/fusion/tuple/tuple_tie.hpp:18no newline at end of file Line 15959: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 15973: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 15987: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16001: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 16015: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 16029: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16043: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 16057: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 16071: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16085: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 16099: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 16113: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16127: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 16141: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 16155: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16169: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file Line 16183: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file Line 16197: ../../../../externals/boost/fusion/tuple/detail/preprocessed/make_tuple.hpp:21:7: warning: no newline at end of file Line 16211: ../../../../externals/boost/fusion/tuple/detail/preprocessed/tuple_tie.hpp:21:7: warning: no newline at end of file </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7353 Trac 1.4.3 viboes Sat, 03 Nov 2012 01:49:07 GMT description changed https://svn.boost.org/trac10/ticket/7353#comment:1 https://svn.boost.org/trac10/ticket/7353#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/7353?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Joel de Guzman Sat, 03 Nov 2012 23:35:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7353#comment:2 https://svn.boost.org/trac10/ticket/7353#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> I can't reproduce this. I looked at the files you mention but I don't see any missing newlines at the end. I looked at the files in both Linux, Mac and Windows. My guess is that you've got a problem when obtaining the source? I'm not sure. </p> <p> Please investigate further. The problem does is not in Boost, as far as I can tell. </p> Ticket work@… Sat, 09 Feb 2013 22:47:35 GMT <link>https://svn.boost.org/trac10/ticket/7353#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7353#comment:3</guid> <description> <p> Hi, I have the exact same problem. </p> <p> boost/fusion/tuple/detail/preprocessed/tuple.hpp:21:7: warning: no newline at end of file </p> <p> I got the source (boost_1_53_0.tar.bz2) from sourceforge. Built an installed standard (./bootstrap.sh --prefx=/my/pfix ; ./b2 install). </p> <p> I checked the file and it seems to be autogenerated, and really, the last character on the file is the "f" from #endif. Here's the file </p> <pre class="wiki">/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) This is an auto-generated file. Do not edit! ==============================================================================*/ #if FUSION_MAX_VECTOR_SIZE &lt;= 10 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple10.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 20 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple20.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 30 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple30.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 40 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple40.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 50 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple50.hpp&gt; #else #error "FUSION_MAX_VECTOR_SIZE out of bounds for preprocessed headers" #endif </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 11 Feb 2013 10:50:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7353#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7353#comment:4</guid> <description> <p> Confirmed. There must've been something wrong with the way the trunk got merged into release. Trunk is just fine. I'll make sure this gets merged correctly when I do the next merge to release. </p> </description> <category>Ticket</category> </item> <item> <author>Tobias Peciva <tobias.peciva@…></author> <pubDate>Wed, 18 Dec 2013 23:48:14 GMT</pubDate> <title>status, version changed; resolution deleted https://svn.boost.org/trac10/ticket/7353#comment:5 https://svn.boost.org/trac10/ticket/7353#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.50.0</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">worksforme</span> </li> </ul> <p> Reopening, as this has still not been resolved. I just pulled down 1.55 (boost_1_55_0.tar.bz2) and built for OS X. Still no newline at end of file. </p> <p> For reference here is my boost/fusion/tuple/detail/preprocessed/tuple.hpp: </p> <pre class="wiki">/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) This is an auto-generated file. Do not edit! ==============================================================================*/ #if FUSION_MAX_VECTOR_SIZE &lt;= 10 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple10.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 20 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple20.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 30 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple30.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 40 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple40.hpp&gt; #elif FUSION_MAX_VECTOR_SIZE &lt;= 50 #include &lt;boost/fusion/tuple/detail/preprocessed/tuple50.hpp&gt; #else #error "FUSION_MAX_VECTOR_SIZE out of bounds for preprocessed headers" #endif </pre><p> Last character is "f", not newline. </p> <p> And this is my build command, in case it matters: </p> <pre class="wiki">./bootstrap.sh ./b2 -a toolset=clang cxxflags="-std=c++11" link=static variant=release address-model=64 architecture=x86 threading=multi runtime-link=static --without-math --without-graph --without-wave -sZLIB_SOURCE="../../../../zlib-1.2.7" --stagedir=./Mac106/build/Release stage </pre> Ticket Tom Tanner <ttanner2@…> Tue, 23 Sep 2014 08:14:14 GMT <link>https://svn.boost.org/trac10/ticket/7353#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7353#comment:6</guid> <description> <p> Where is this generated from, as this file appears to be in the tar file rather than being rebuilt. </p> </description> <category>Ticket</category> </item> <item> <author>Tom Tanner <ttanner2@…></author> <pubDate>Wed, 24 Sep 2014 10:45:10 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/7353#comment:7 https://svn.boost.org/trac10/ticket/7353#comment:7 <ul> <li><strong>cc</strong> <span class="trac-author">ttanner2@…</span> added </li> </ul> Ticket Kohei Takahashi Tue, 11 Oct 2016 16:26:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7353#comment:8 https://svn.boost.org/trac10/ticket/7353#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I have no OS X machine but it seems already to be fixed. <a class="ext-link" href="https://github.com/boostorg/fusion/commit/b6142f16133b21ee0c5e9c8ec48646f2654e74b4"><span class="icon">​</span>https://github.com/boostorg/fusion/commit/b6142f16133b21ee0c5e9c8ec48646f2654e74b4</a> </p> Ticket habdank@… Wed, 19 Oct 2016 20:30:48 GMT <link>https://svn.boost.org/trac10/ticket/7353#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7353#comment:9</guid> <description> <p> Thanks a lot for fixing it. </p> <p> EOL at the end of header file is very old requirement which comes from C, but I think it is also better for readability, when the code ends with new line. </p> </description> <category>Ticket</category> </item> </channel> </rss>