Skip to content

Various fixes detected on ubuntu 26.04#1977

Merged
fspindle merged 8 commits into
lagadic:masterfrom
fspindle:fix_ubuntu26.04
Jul 1, 2026
Merged

Various fixes detected on ubuntu 26.04#1977
fspindle merged 8 commits into
lagadic:masterfrom
fspindle:fix_ubuntu26.04

Conversation

@fspindle

Copy link
Copy Markdown
Contributor

No description provided.

fspindle and others added 5 commits June 24, 2026 22:46
In file included from visp/modules/robot/src/haptic-device/virtuose/vpVirtuose.cpp:41:
isp/modules/robot/include/visp3/robot/vpVirtuose.h:169:8: error: ‘void visp::vpVirtuose::init()’ marked ‘override’, but does not override
  169 |   void init() VP_OVERRIDE;
      |        ^~~~
…adows a member

This warning is an issue.

visp/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp: In member function ‘void visp::vpDetectorDNNOpenCV::postProcess(DetectionCandidates&)’:
visp/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp:517:10: warning: declaration of ‘void visp::postProcess_SSD_MobileNet(vpDetectorDNNOpenCV::DetectionCandidates&, std::vector<cv::Mat>&, const vpDetectorDNNOpenCV::NetConfig&)’ shadows a member of ‘visp::vpDetectorDNNOpenCV’ [-Wshadow]
  517 |     void postProcess_SSD_MobileNet(DetectionCandidates & proposals, std::vector<cv::Mat> &dnnRes, const NetConfig & netConfig);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from visp/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp:41:
visp/modules/detection/include/visp3/detection/vpDetectorDNNOpenCV.h:578:8: note: shadowed declaration is here
  578 |   void postProcess_SSD_MobileNet(DetectionCandidates &proposals, std::vector<cv::Mat> &dnnRes, const NetConfig &netConfig);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~
…ign of the result [-Wsign-conversion]

visp/apps/rs-dataset/visp-save-rs-dataset.cpp: In constructor ‘{anonymous}::vpStorageWorker::vpStorageWorker({anonymous}::vpFrameQueue&, const std::string&, const std::string&, bool, bool, bool, bool, bool, bool, bool, bool, unsigned int, unsigned int)’:
visp/apps/rs-dataset/visp-save-rs-dataset.cpp:491:19: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
  491 |     m_size_height(height), m_size_width(width)
      |                   ^~~~~~
visp/apps/rs-dataset/visp-save-rs-dataset.cpp:491:41: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion]
  491 |     m_size_height(height), m_size_width(width)
      |                                         ^~~~~
visp/apps/rs-dataset/visp-save-rs-dataset.cpp: In member function ‘void {anonymous}::vpStorageWorker::run()’:
visp/apps/rs-dataset/visp-save-rs-dataset.cpp:581:30: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
  581 |             uint32_t width = m_size_width;
      |                              ^~~~~~~~~~~~
visp/apps/rs-dataset/visp-save-rs-dataset.cpp:582:31: warning: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
  582 |             uint32_t height = m_size_height;
      |                               ^~~~~~~~~~~~~
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.73%. Comparing base (0d66fa7) to head (b9e5ae5).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
modules/core/src/image/vpImageCircle.cpp 0.00% 1 Missing ⚠️
...s/core/src/math/misc/vpStatisticalTestAbstract.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1977      +/-   ##
==========================================
- Coverage   48.76%   48.73%   -0.03%     
==========================================
  Files         532      532              
  Lines       69401    69397       -4     
  Branches    32432    32430       -2     
==========================================
- Hits        33840    33822      -18     
- Misses      31422    31436      +14     
  Partials     4139     4139              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fspindle added 3 commits June 30, 2026 15:11
…itialized [-Wuninitialized]

Occurs when visp builds static libraries on ununtu 26.04

In member function ‘void visp::vpStatisticalTestAbstract::setNbSamplesForStat(const unsigned int&)’,
    inlined from ‘visp::vpStatisticalTestAbstract& visp::vpStatisticalTestAbstract::operator=(const visp::vpStatisticalTestAbstract&)’ at visp/modules/core/src/math/misc/vpStatisticalTestAbstract.cpp:181:24,
    inlined from ‘visp::vpStatisticalTestAbstract::vpStatisticalTestAbstract(const visp::vpStatisticalTestAbstract&)’ at visp/modules/core/src/math/misc/vpStatisticalTestAbstract.cpp:146:11:
visp/modules/core/src/math/misc/vpStatisticalTestAbstract.cpp:196:7: warning: ‘*this.visp::vpStatisticalTestAbstract::m_s’ is used uninitialized [-Wuninitialized]
  196 |   if (m_s != nullptr) {
      |       ^~~
…t&, visp::vpImageCircle const&)

Occurs when visp build static libraries

/usr/bin/x86_64-linux-gnu-ld.bfd: ../../../lib/libvisp_core.a(vpImageCircle.cpp.o): in function `visp::operator==(visp::vpImageCircle const&, visp::vpImageCircle const&)':
vpImageCircle.cpp:(.text+0x49c0): multiple definition of `visp::operator==(visp::vpImageCircle const&, visp::vpImageCircle const&)'; ../../../lib/libvisp_imgproc.a(vpCircleHoughTransform_common.cpp.o)
Fix by inlining nlohmann::json convertCommandLineArgument<std::string>(const std::string &arg)
that is a specialization of convertCommandLineArgument() template

Issue occurs when visp builds static libraries

/usr/bin/x86_64-linux-gnu-ld.bfd: ../../lib/libvisp_io.a(vpJsonArgumentParser.cpp.o): in function `nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> convertCommandLineArgument<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
vpJsonArgumentParser.cpp:(.text+0x3ff0): multiple definition of `nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> convertCommandLineArgument<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'; CMakeFiles/catchJsonArgumentParser.dir/test/catchJsonArgumentParser.cpp.o:catchJsonArgumentParser.cpp:(.text+0x41a0): first defined here
[ 37%] Built target testMouseEvent
collect2: error: ld returned 1 exit status
@fspindle fspindle merged commit dbbda9e into lagadic:master Jul 1, 2026
77 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant