ahojnnes · GitHub

  /project/python/../src/pycolmap/feature/types.h:14: warning: type ‘struct type_caster’ violates the C++ One Definition Rule [-Wodr]
  14 | PYBIND11_MAKE_OPAQUE(colmap::FeatureKeypoints);
  /tmp/build-env-vmbxo2bj/lib/python3.11/site-packages/pybind11/include/pybind11/stl.h:366: note: a type with different bases is defined in another translation unit
  366 | struct type_caster<std::vector<Type, Alloc>> : list_caster<std::vector<Type, Alloc>, Type> {};
  /project/python/../src/pycolmap/feature/types.h:16: warning: type ‘struct type_caster’ violates the C++ One Definition Rule [-Wodr]
  16 | PYBIND11_MAKE_OPAQUE(colmap::FeatureMatches);
  /tmp/build-env-vmbxo2bj/lib/python3.11/site-packages/pybind11/include/pybind11/stl.h:366: note: a type with different bases is defined in another translation unit
  366 | struct type_caster<std::vector<Type, Alloc>> : list_caster<std::vector<Type, Alloc>, Type> {};
  /project/src/pycolmap/estimators/bundle_adjustment.cc: In member function ‘Problem’:
  /project/src/pycolmap/estimators/bundle_adjustment.cc:47:3: warning: function may return address of local variable [-Wreturn-local-addr]
  47 |   }
  |   ^
  /tmp/build-env-vmbxo2bj/lib/python3.11/site-packages/pybind11/include/pybind11/cast.h:1651:35: note: declared here
  1651 |     return cast_op<T>(load_type<T>(handle));

Read the original on github.com ↗