Skip to content

ts: eliminate -Warray-bounds warning#15475

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

ts: eliminate -Warray-bounds warning#15475
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:build_eliminate_warning_array_bounds

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Sep 6, 2019

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
Copy link
Copy Markdown
Member Author

alalek commented Sep 6, 2019

👍

@opencv-pushbot opencv-pushbot merged commit bdf23ce into opencv:3.4 Sep 6, 2019
@alalek alalek mentioned this pull request Sep 13, 2019
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