Skip to content

core: CV_NODISCARD macro with semantic of [[nodiscard]] attr#11990

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:clone_nodiscard_attribute
Jul 17, 2018
Merged

core: CV_NODISCARD macro with semantic of [[nodiscard]] attr#11990
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:clone_nodiscard_attribute

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Jul 16, 2018

[[nodiscard]] is defined in C++17.
There is fallback alias for modern GCC / Clang compilers.

Merge after #11989.

Validated.

/build/precommit_macosx/3.4/opencv/modules/calib3d/src/calibinit.cpp:518:9: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
        img.clone();
docker_image:Custom=fedora:28

[[nodiscard]] is defined in C++17.
There is fallback alias for modern GCC / Clang compilers.
@alalek
Copy link
Copy Markdown
Member Author

alalek commented Jul 17, 2018

👍

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