-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
stitching headers compiler warning #23916
Copy link
Copy link
Open
Description
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)
Reactions are currently unavailable