Skip to content

Suppress CUDA nvcc generated warnings #1394-D and #1388-D on windows#22816

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:remove_windows_cuda_dll_warning
Nov 17, 2022
Merged

Suppress CUDA nvcc generated warnings #1394-D and #1388-D on windows#22816
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:remove_windows_cuda_dll_warning

Conversation

@cudawarped
Copy link
Copy Markdown
Contributor

When building with CUDA on windows the following two warnings

  1. #1394-D: field of class type without a DLL interface used in a class with a DLL interface from windows CUDA builds.
  2. #1388-D: base class dllexport/dllimport specification differs from that of the derived class.

are issue thousands of times.

Aswell as hiding legitimite warnings from the user it causes many to think that there build is broken see below for examples

I suggest removing this warning all together on Windows CUDA builds unless there is a better option?

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

warning opencv#1394-D: field of class type without a DLL interface used in a class with a DLL interface
from windows CUDA builds.
@asmorkalov asmorkalov requested review from asmorkalov and removed request for asmorkalov November 16, 2022 15:10
@asmorkalov asmorkalov merged commit 277ead9 into opencv:4.x Nov 17, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants