alicevision / CCTag

Detection of CCTag markers made up of concentric circles.
https://cctag.readthedocs.io
Mozilla Public License 2.0
358 stars 89 forks source link

fix gcc11 ordered pointer comparison #191

Closed bartoszek closed 2 years ago

bartoszek commented 2 years ago

cuda:11 with gcc:11 host compiler complains about: ordered comparison of pointer with int zero.

/build/cctag/src/CCTag-1.0.1/src/./cctag/cuda/frame_export.cu: In member function ‘bool cctag::Frame::applyExport(cctag::EdgePointCollection&, std::vector<cct
ag::EdgePoint*>&, int)’:
/build/cctag/src/CCTag-1.0.1/src/./cctag/cuda/frame_export.cu:105:7: error: ordered comparison of pointer with integer zero (‘cctag::EdgePoint*’ and ‘int’)
  105 |             if( n >= 0 )
      |       ^
/build/cctag/src/CCTag-1.0.1/src/./cctag/cuda/frame_export.cu:110:7: error: ordered comparison of pointer with integer zero (‘cctag::EdgePoint*’ and ‘int’)
  110 |             if( n >= 0 )
      |       ^
CMake Error at CCTag_generated_frame_export.cu.o.Release.cmake:280 (message):
  Error generating file
  /build/cctag/src/build/src/CMakeFiles/CCTag.dir/./cctag/cuda/./CCTag_generated_frame_export.cu.o