Skip to content

G-API: Suppress ngraph warnings for MSVS2015 (4268)#21362

Merged
alalek merged 3 commits intoopencv:4.xfrom
mpashchenkov:mp/ocv-gapi-suppress-warn
Jan 19, 2022
Merged

G-API: Suppress ngraph warnings for MSVS2015 (4268)#21362
alalek merged 3 commits intoopencv:4.xfrom
mpashchenkov:mp/ocv-gapi-suppress-warn

Conversation

@mpashchenkov
Copy link
Copy Markdown
Contributor

@mpashchenkov mpashchenkov commented Dec 29, 2021

Relates #21134

OpenVINO recommends to use MSVS 2019. Warnings (4268) are disabled.

force_builders=Custom Win
build_image:Custom Win=openvino-2021.4.2-vc14
test_modules:Custom Win=dnn,gapi,python2,python3,java

#pragma warning(push)
#pragma warning(disable : 4100)
# if _MSC_VER < 1900
# pragma warning(disable:4268) // Disable warnings of ngraph. OpenVINO recommends use MSVS 2019.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1900 is MSVS 2015

This condition doesn't work at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"1900 is MSVS 2015" - I know. Local build was successful with this condition. But OV package was fresher.
Sorry for experiment.

@alalek
Copy link
Copy Markdown
Member

alalek commented Jan 19, 2022

@mpashchenkov What is the status of this PR? Is it ready to be merged?

@mpashchenkov
Copy link
Copy Markdown
Contributor Author

@alalek, I think yes. PR contains simple disabling for two msvs2015 warnings. Origin - ngraph's header. Does PR need one more review from someone?

@alalek alalek merged commit 6778e19 into opencv:4.x Jan 19, 2022
@alalek alalek mentioned this pull request Feb 22, 2022
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
…s-warn

G-API: Suppress ngraph warnings for MSVS2015 (4268)

* 4268 are suppressed

* 1900-->>1910 (v140)

* Two more warnings from ngraph include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants