Boost C++ Libraries: Ticket #11933: warnings in 1.60 when compiling with nvcc https://svn.boost.org/trac10/ticket/11933 <p> I'm compiling a larger project ( <a class="ext-link" href="https://github.com/ComputationalRadiationPhysics/picongpu/"><span class="icon">​</span>https://github.com/ComputationalRadiationPhysics/picongpu/</a> current dev) which uses boost heavily. However a lot of warnings are issued. Since we are quite agnostic to warnings (compiling with many warnings enabled and -Werror) this is troubling and it would be great, if those are fixed in future versions. If I remember correctly older versions (1.58) did not had them. </p> <p> CUDA 7.0 </p> <pre class="wiki">boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(49): warning: "cc" clobber ignored boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(65): warning: "cc" clobber ignored boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(91): warning: "cc" clobber ignored boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used </pre><p> CUDA 7.5 </p> <pre class="wiki">boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): warning: variable "tmp" was set but never used </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11933 Trac 1.4.3 k.ljunngkvist@… Sat, 19 Mar 2016 02:28:31 GMT <link>https://svn.boost.org/trac10/ticket/11933#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:1</guid> <description> <p> I can repeat that this last warning appears for CUDA 7.5 when using BOOST. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 29 May 2016 09:58:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11933#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:2</guid> <description> <p> This issue is still present in Boost 1.61.0 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Sun, 29 May 2016 16:59:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11933#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:3</guid> <description> <p> Can someone suggest a fix? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 30 May 2016 07:59:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11933#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:4</guid> <description> <p> Idea would be to list 'tmp' as an input operand not as an output operand or using something like '"r" (new)' to create an unnamed register, although I'm not that firm in inline asm. (Background: The warning arises from an inline asm block, that uses compare-and-exchange where tmp is used as a temporary in that block but listed as an output param) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Mon, 30 May 2016 11:25:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11933#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:5</guid> <description> <p> I'd rather not touch a working inline asm block. How about something like <code>(void)tmp;</code> after that? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Flamefire</dc:creator> <pubDate>Mon, 30 May 2016 12:34:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11933#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11933#comment:6</guid> <description> <p> Define 'working' if it mentions a temporary as an 'output' which should be either a new temporary register or an input if that is not possible. I'd consider this a bug and instead of crafting a work-around by 'using' an unused variable I'd rather fix that bug. </p> </description> <category>Ticket</category> </item> </channel> </rss>