Bug 235493 - [GStreamer] C++20 warnings
Summary: [GStreamer] C++20 warnings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
: 235075 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-23 07:12 PST by Philippe Normand
Modified: 2022-01-23 11:30 PST (History)
9 users (show)

See Also:


Attachments
Patch (1.86 KB, patch)
2022-01-23 08:25 PST, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2022-01-23 07:12:56 PST
/app/webkit/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:456:26: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'GstIteratorAdaptor<_GstPad>::iterator' and 'GstIteratorAdaptor<_GstPad>::iterator') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
        for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
                         ^
/app/webkit/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:392:14: note: candidate function with non-reversed arguments
        bool operator!=(const iterator& other) { return !(*this == other); }
             ^
/app/webkit/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: ambiguous candidate function with reversed arguments
        bool operator==(const iterator& other)
             ^
/app/webkit/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:471:26: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'GstIteratorAdaptor<_GstPad>::iterator' and 'GstIteratorAdaptor<_GstPad>::iterator') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]
        for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
                         ^
/app/webkit/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:392:14: note: candidate function with non-reversed arguments
        bool operator!=(const iterator& other) { return !(*this == other); }
             ^
/app/webkit/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: ambiguous candidate function with reversed arguments
        bool operator==(const iterator& other)
             ^
2 warnings generated.
Comment 1 Philippe Normand 2022-01-23 08:25:28 PST
Created attachment 449749 [details]
Patch
Comment 2 Philippe Normand 2022-01-23 09:33:02 PST
*** Bug 235075 has been marked as a duplicate of this bug. ***
Comment 3 EWS 2022-01-23 11:29:02 PST
Committed r288422 (246313@main): <https://commits.webkit.org/246313@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449749 [details].
Comment 4 Radar WebKit Bug Importer 2022-01-23 11:30:17 PST
<rdar://problem/87944376>