Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b80a3a91
Commit
b80a3a91
authored
Nov 11, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3401 from SpecLad:optflow-bogus-Warray-bounds
parents
e05a0bc6
13d67b6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
OpenCVPCHSupport.cmake
cmake/OpenCVPCHSupport.cmake
+2
-2
optical_flow.cpp
modules/superres/src/optical_flow.cpp
+17
-2
No files found.
cmake/OpenCVPCHSupport.cmake
View file @
b80a3a91
...
...
@@ -147,9 +147,9 @@ MACRO(_PCH_GET_TARGET_COMPILE_FLAGS _cflags _header_name _pch_path _dowarn )
# if you have different versions of the headers for different build types
# you may set _pch_dowarn
IF
(
_dowarn
)
SET
(
${
_cflags
}
"
${
PCH_ADDITIONAL_COMPILER_FLAGS
}
-include
\"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
_header_name
}
\"
-Winvalid-pch "
)
set
(
${
_cflags
}
"
${
PCH_ADDITIONAL_COMPILER_FLAGS
}
-Winvalid-pch"
)
ELSE
(
_dowarn
)
SET
(
${
_cflags
}
"
${
PCH_ADDITIONAL_COMPILER_FLAGS
}
-include
\"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
_header_name
}
\"
"
)
set
(
${
_cflags
}
"
${
PCH_ADDITIONAL_COMPILER_FLAGS
}
"
)
ENDIF
(
_dowarn
)
ELSE
(
CMAKE_COMPILER_IS_GNUCXX
)
...
...
modules/superres/src/optical_flow.cpp
View file @
b80a3a91
...
...
@@ -40,6 +40,20 @@
//
//M*/
#if defined(__arm__) && defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)
// While compiling CV_INIT_ALGORITHM(Farneback_GPU, ...) below, GCC emits a bogus
// -Warray-bounds warning in GpuMat::~GpuMat. Also, for some reason, suppressing
// it inside precomp.hpp doesn't work (probably because it's precompiled).
// Thus, we include this before it's included by precomp.hpp.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#include "opencv2/core/gpumat.hpp"
#pragma GCC diagnostic pop
// Even more strangely, this suppression doesn't work when cross-compiling.
// For that, there's another suppression at the bottom of the file.
#endif
#include "precomp.hpp"
using
namespace
std
;
...
...
@@ -986,7 +1000,8 @@ Ptr<DenseOpticalFlowExt> cv::superres::createOptFlow_Farneback_OCL()
#endif
// Suppress specific warnings during cross-compilation for ARM
#if defined(__arm__) && defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
// Even though this looks as if it covers nothing, it actually suppress a warning in
// CV_INIT_ALGORITHM(Farneback_GPU, ...). See the top comment for more explanation.
#if defined(__arm__) && defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment