Skip to content

Enabled -Wnarrowing warning - #13889

Merged
alalek merged 8 commits into
opencv:3.4from
mshabunin:enable-narrowing-warning
Feb 26, 2019
Merged

alalek merged 8 commits into
opencv:3.4from
mshabunin:enable-narrowing-warning

Conversation

@mshabunin

@mshabunin mshabunin commented Feb 21, 2019 •

Copy link
Copy Markdown
Contributor

Merge with opencv/opencv_contrib#2011

This pullrequest changes

Re-enabled narrowing conversion warnings.

For C++11 and later standards, narrowing conversions are diagnosed by default, as required by the standard.

https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html#index-Wnarrowing

ci_branch=pr13889
force_builders=Custom
buildworker:Custom=linux-1,linux-2
docker_image:Custom=ubuntu-clang:18.04

@alalek alalek left a comment

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.

Looks good to me 👍

@alalek
alalek merged commit 8c1e053 into opencv:3.4 Feb 26, 2019
@alalek alalek mentioned this pull request Feb 26, 2019
@mshabunin
mshabunin deleted the enable-narrowing-warning branch February 26, 2019 12:11
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Enabled -Wnarrowing warning

* Fixed type narrowing issues

* Cast python constants

* Use long long for python constants

* Use int for python constants with fallback to long

* Update cv2.cpp
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