Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: silence maybe-uninitialized false positives #19820

Merged
merged 1 commit into from Jan 10, 2018
Merged

osd: silence maybe-uninitialized false positives #19820

merged 1 commit into from Jan 10, 2018

Conversation

yaozongyou
Copy link
Contributor

Signed-off-by: Yao Zongyou yaozongyou@vip.qq.com

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
@yaozongyou
Copy link
Contributor Author

yaozongyou commented Jan 7, 2018

The same warning as #19274 and my gcc version is 7.2.0, boost 1.66.0:

ceph/src/osd/PrimaryLogPG.cc:4604:50: warning: ‘maybe_crc.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     size(size), osd(osd), soid(soid), flags(flags) {}
                                                  ^
ceph/src/osd/PrimaryLogPG.cc:5066:31: note: ‘maybe_crc.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ was declared here
     boost::optional<uint32_t> maybe_crc;
                               ^~~~~~~~~

@yaozongyou yaozongyou deleted the silence-maybe-uninitialized-warning branch January 10, 2018 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants