Skip to content

stitching headers compiler warning #23916

@dustsigns

Description

@dustsigns

System Information

OpenCV version: 4.8.0
Operating System / Platform: Debian 11.6
Compiler & compiler version: GCC 10.2.1

Detailed description

Including the header of the stitching module yields the following error with OpenCV 4.8.0:

In file included from /usr/local/include/opencv4/opencv2/stitching/detail/warpers.hpp:47,
                 from /usr/local/include/opencv4/opencv2/stitching/warpers.hpp:46,
                 from /usr/local/include/opencv4/opencv2/stitching.hpp:48,
                 from stitching_compiler_error.cpp:1:
/usr/local/include/opencv4/opencv2/core/cuda.hpp:580:2: error: extra ‘;’ [-Werror=pedantic]
  580 | };
      |  ^
/usr/local/include/opencv4/opencv2/core/cuda.hpp:591:2: error: extra ‘;’ [-Werror=pedantic]
  591 | };
      |  ^
cc1plus: all warnings being treated as errors

Steps to reproduce

#include <opencv2/stitching.hpp>
int main() {}

Compile with g++ -I/usr/local/include/opencv4 -Wpedantic -Werror stitching_compiler_error.cpp

This error was not present in OpenCV 4.6.0 and prior.

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions