[Webkit-unassigned] [Bug 252671] New: TimingFunction.h -Wdangling-reference warning spam with GCC 13

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 21 09:23:12 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=252671

            Bug ID: 252671
           Summary: TimingFunction.h -Wdangling-reference warning spam
                    with GCC 13
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: bugs-noreply at webkitgtk.org

This is obviously a false positive (GCC does not understand leakRef), so we'll need to suppress it either individually or project-wide. For now I think only TimingFunction.h is a problem so individual suppressions will suffice.

/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h: In static member function 'static const WebCore::LinearTimingFunction& WebCore::LinearTimingFunction::sharedLinearTimingFunction()':
/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h:75:44: warning: possibly dangling reference to a temporary [-Wdangling-reference]
   75 |         static const LinearTimingFunction& function = create().leakRef();
      |                                            ^~~~~~~~
/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h:75:71: note: the temporary was destroyed at the end of the full expression 'WebCore::LinearTimingFunction::create()().WTF::Ref<WebCore::LinearTimingFunction>::leakRef()'
   75 |         static const LinearTimingFunction& function = create().leakRef();
      |                                                       ~~~~~~~~~~~~~~~~^~
/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h: In static member function 'static const WebCore::CubicBezierTimingFunction& WebCore::CubicBezierTimingFunction::defaultTimingFunction()':
/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h:141:49: warning: possibly dangling reference to a temporary [-Wdangling-reference]
  141 |         static const CubicBezierTimingFunction& function = create().leakRef();
      |                                                 ^~~~~~~~
/builddir/build/BUILD/webkitgtk-2.39.90/Source/WebCore/platform/animation/TimingFunction.h:141:76: note: the temporary was destroyed at the end of the full expression 'WebCore::CubicBezierTimingFunction::create()().WTF::Ref<WebCore::CubicBezierTimingFunction>::leakRef()'
  141 |         static const CubicBezierTimingFunction& function = create().leakRef();

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230221/24762dd8/attachment.htm>


More information about the webkit-unassigned mailing list