DUNE-DAQ / fdreadoutlibs

fdreadoutlibs
0 stars 3 forks source link

Compiler warning noticed on 27-June #30

Closed bieryAtFnal closed 2 years ago

bieryAtFnal commented 2 years ago

It would be great for someone to modify the code so that this warning message doesn't appear during compilation...

[85/126] Building CXX object fdreadoutlibs/CMakeFiles/fdreadoutlibs.dir/src/FDReadoutlibs.cpp.o
In file included from /home/nfs/dunedaq/daqsw/27JunDevTest/sourcecode/fdreadoutlibs/src/FDReadoutlibs.cpp:5:
/home/nfs/dunedaq/daqsw/27JunDevTest/sourcecode/fdreadoutlibs/include/fdreadoutlibs/wib/RAWWIBTriggerPrimitiveProcessor.hpp: In member function 'void dunedaq::fdreadoutlibs::RAWWIBTriggerPrimitiveProcessor::tp_unpack(dunedaq::fdreadoutlibs::RAWWIBTriggerPrimitiveProcessor::frame_ptr)':
/home/nfs/dunedaq/daqsw/27JunDevTest/sourcecode/fdreadoutlibs/include/fdreadoutlibs/wib/RAWWIBTriggerPrimitiveProcessor.hpp:272:52: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
     for (n=1; offset+(n-1)*RAW_WIB_TP_SUBFRAME_SIZE<num_elem; ++n) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
[85/126] Linking CXX shared library fdreadoutlibs/src/libfdreadoutlibs.so
bieryAtFnal commented 2 years ago

Closing this Issue because it has surely been fixed or become obsolete by now.