Skip to content

ts: eliminate -Warray-bounds warning - #15475

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:build_eliminate_warning_array_bounds
Sep 6, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:build_eliminate_warning_array_bounds

Conversation

@alalek

@alalek alalek commented Sep 6, 2019 •

Copy link
Copy Markdown
Member

GCC8

Message:

In function 'cv::Mat cvtest::calcLaplaceKernel2D(int)':
cc1plus: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [25, 32] is out of the bounds [0, 24] of object 'scharr' with type 'const int [6]' [-Warray-bounds]
/build/precommit_custom_linux/3.4/opencv/modules/ts/src/ts_func.cpp:2706:26: note: 'scharr' declared here
         static const int scharr[] = { 3, 10, 3, -1, 0, 1 };
buildworker:Custom=linux-1
build_image:Custom=powerpc64le

@alalek

alalek commented Sep 6, 2019

Copy link
Copy Markdown
Member Author

👍

@opencv-pushbot
opencv-pushbot merged commit bdf23ce into opencv:3.4 Sep 6, 2019
@alalek alalek mentioned this pull request Sep 13, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
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