WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 292177
292097
[GTK] Fix return-stack-address warnings
https://bugs.webkit.org/show_bug.cgi?id=292097
Summary
[GTK] Fix return-stack-address warnings
Philippe Normand
Reported
2025-04-26 12:10:08 PDT
/var/home/phil/WebKit/Source/JavaScriptCore/API/glib/JSCContext.cpp:1122:12: warning: address of stack memory associated with local variable 'jscClass' returned [-Wreturn-stack-address] 1122 | return jscClass.get(); | ^~~~~~~~ 1 warning generated. [2041/4203] Generating ../../WebCore/DerivedSources/WebCoreLogDefinitions.h Log messages input file: /var/home/phil/WebKit/Source/WebCore/platform/LogMessages.in Log message receiver header file: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/WebCoreLogDefinitions.h [3752/4203] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/glib/WebKitBackForwardList.cpp.o /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/WebKitBackForwardList.cpp:101:16: warning: address of stack memory associated with local variable 'listItem' returned [-Wreturn-stack-address] 101 | return listItem.get(); | ^~~~~~~~ /var/home/phil/WebKit/Source/WebKit/UIProcess/API/glib/WebKitBackForwardList.cpp:106:12: warning: address of stack memory associated with local variable 'listItem' returned [-Wreturn-stack-address] 106 | return listItem.get(); | ^~~~~~~~ 2 warnings generated. [3848/4203] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/gtk/PageClientImpl.cpp.o /var/home/phil/WebKit/Source/WebKit/UIProcess/API/gtk/PageClientImpl.cpp:186:28: warning: temporary whose address is used as value of local variable 'newCursor' will be destroyed at the end of the full-expression [-Wdangling] 186 | GdkCursor* newCursor = cursor.platformCursor().get(); | ^~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated.
Attachments
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2025-04-26 12:11:13 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/44554
Michael Catanzaro
Comment 2
2025-04-28 08:43:19 PDT
*** This bug has been marked as a duplicate of
bug 292177
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug