Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 10 by anest...@
gmail.com: Multiple compilation errors when using GCC 11.2.1 20211203 (Red Hat 11.2.1-7)
https://bugs.chromium.org/p/webp2/issues/detail?id=10GCC 11.2.1 20211203 (Red Hat 11.2.1-7) from Fedora 35 shows quite a number of compilation errors (shown as warnings below because I removed -Werror):
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:102:33: warning: ‘this’ pointer is null [-Wnonnull]
102 | width = yuv_output->GetWidth();
| ~~~~~~~~~~~~~~~~~~~~^~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:470:12: note: in a call to non-static member function ‘uint32_t WP2::YUVPlane::GetWidth() const’
470 | uint32_t GetWidth() const;
| ^~~~~~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:103:35: warning: ‘this’ pointer is null [-Wnonnull]
103 | height = yuv_output->GetHeight();
| ~~~~~~~~~~~~~~~~~~~~~^~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:471:12: note: in a call to non-static member function ‘uint32_t WP2::YUVPlane::GetHeight() const’
471 | uint32_t GetHeight() const;
| ^~~~~~~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:128:29: warning: ‘this’ pointer is null [-Wnonnull]
128 | csp_transform->ToYuv(ToArgb32b(features.background_color));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/libwebp2/src/utils/plane.h:29,
from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/csp.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/csp.h:116:11: note: in a call to non-static member function ‘WP2::Ayuv38b WP2::CSPTransform::ToYuv(const WP2::Argb32b&) const’
116 | Ayuv38b ToYuv(const Argb32b& color) const;
| ^~~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:130:21: warning: ‘this’ pointer is null [-Wnonnull]
130 | yuv_output->Fill(top, color);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:493:8: note: in a call to non-static member function ‘void WP2::YUVPlane::Fill(const WP2::Rectangle&, const WP2::Ayuv38b&)’
493 | void Fill(const Rectangle& rect, const Ayuv38b& color);
| ^~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:131:21: warning: ‘this’ pointer is null [-Wnonnull]
131 | yuv_output->Fill(bot, color);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:493:8: note: in a call to non-static member function ‘void WP2::YUVPlane::Fill(const WP2::Rectangle&, const WP2::Ayuv38b&)’
493 | void Fill(const Rectangle& rect, const Ayuv38b& color);
| ^~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:132:21: warning: ‘this’ pointer is null [-Wnonnull]
132 | yuv_output->Fill(lft, color);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:493:8: note: in a call to non-static member function ‘void WP2::YUVPlane::Fill(const WP2::Rectangle&, const WP2::Ayuv38b&)’
493 | void Fill(const Rectangle& rect, const Ayuv38b& color);
| ^~~~
In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*, const WP2::CSPTransform*, WP2::YUVPlane*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:88:18,
inlined from ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’ at /tmp/libwebp2/src/dec/anim_dec.cc:140:21:
/tmp/libwebp2/src/dec/anim_dec.cc:133:21: warning: ‘this’ pointer is null [-Wnonnull]
133 | yuv_output->Fill(rgt, color);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /tmp/libwebp2/src/common/lossy/predictor.h:31,
from /tmp/libwebp2/src/common/global_params.h:25,
from /tmp/libwebp2/src/dec/wp2_dec_i.h:23,
from /tmp/libwebp2/src/dec/anim_dec.cc:24:
/tmp/libwebp2/src/utils/plane.h: In function ‘WP2Status WP2::FillBorders(const WP2::BitstreamFeatures&, const WP2::AnimationFrame&, WP2::ArgbBuffer*)’:
/tmp/libwebp2/src/utils/plane.h:493:8: note: in a call to non-static member function ‘void WP2::YUVPlane::Fill(const WP2::Rectangle&, const WP2::Ayuv38b&)’
493 | void Fill(const Rectangle& rect, const Ayuv38b& color);
|
In file included from /tmp/libwebp2/src/utils/ans_utils.h:30,
from /tmp/libwebp2/tests/test_assert.cc:22:
In member function ‘uint32_t WP2::ANSEncBase::PutASymbol(uint32_t, WP2::ANSAdaptiveSymbol*, const char*)’,
inlined from ‘int main(int, const char**)’ at /tmp/libwebp2/tests/test_assert.cc:79:21:
/tmp/libwebp2/src/utils/ans_enc.h:201:17: warning: ‘this’ pointer is null [-Wnonnull]
201 | asym->Update(symbol);
| ~~~~~~~~~~~~^~~~~~~~
In file included from /tmp/libwebp2/tests/test_assert.cc:21:
/tmp/libwebp2/src/utils/ans.h: In function ‘int main(int, const char**)’:
/tmp/libwebp2/src/utils/ans.h:208:8: note: in a call to non-static member function ‘void WP2::ANSAdaptiveSymbol::Update(uint32_t)’
208 | void Update(uint32_t sym);
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings