Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mshabunin
Copy link
Contributor

@mshabunin mshabunin commented Jul 6, 2023

Related issue: #22218

  • Silenced or workarounded several strange warnings specific for GCC 11 (default in Ubuntu 22), GCC 12 and Clang 13
  • Reduced build process output (mostly for Java build)

Note: patched gtest to avoid some warnings, the modification should not seriously interfere with future upgrades, even if this patch will be overwritten it won't be a serious problem.

Copy link
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

#include "opencv2/core/eigen.hpp"
#endif

#ifdef CV_CXX11
Copy link
Contributor

Choose a reason for hiding this comment

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

We use C++11 by default. Why do you need the check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is test below range_checking which uses GpuMat and is guarded by #ifdef CV_CXX11, so I added the same guard for the header. Probably both ifdefs should be removed if we choose to merge #23736 .

Copy link
Contributor

Choose a reason for hiding this comment

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

I propose to remove both CV_CXX11 checks as not relevant any more.

Copy link
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov asmorkalov merged commit 05becd5 into opencv:4.x Jul 10, 2023
@mshabunin mshabunin deleted the fix-warnings-gcc branch July 10, 2023 13:53
@asmorkalov asmorkalov mentioned this pull request Jul 27, 2023
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