You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/libPMacc/include/cuSTL/container/CartBuffer.tpp: In member function ‘virtual void picongpu::TotalDivJ::notify(uint32_t)’:
src/libPMacc/include/cuSTL/container/CartBuffer.tpp:155:1: warning: ‘fieldJ.PMacc::container::CartBuffer<PMacc::math::Vector<float, 3>, 3, PMacc::allocator::EmptyAllocator, mpl_::void_, mpl_::void_>::refCount’ may be used uninitialized in this function [-Wuninitialized]
src/picongpu/include/plugins/TotalDivJ.tpp:82:69: note: ‘fieldJ.PMacc::container::CartBuffer<PMacc::math::Vector<float, 3>, 3, PMacc::allocator::EmptyAllocator, mpl_::void_, mpl_::void_>::refCount’ was declared here
In file included from tmpxft_0000a156_00000000-3_main.cudafe1.stub.c:1:0:
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" [enabled by default]
I don't know why this warning was not shown before, but PseudoBuffer call only the empty default constructor of CartBuffer. In this case member variables of CartBuffer like refCount were not initialized. If so it can create NULL pointer exceptions or destroy the program stack.
The text was updated successfully, but these errors were encountered:
@Heikman the first 3 lines are relevant, the warning -Wno-unused-local-typedefs is a work around for a FindCUDA.cmake bug and only occurs on old gnu compilers.
The new pull #773 request bring up a warning .
I don't know why this warning was not shown before, but
PseudoBuffer
call only the empty default constructor ofCartBuffer
. In this case member variables ofCartBuffer
likerefCount
were not initialized. If so it can createNULL pointer exceptions
or destroy the program stack.The text was updated successfully, but these errors were encountered: