Bug 292097

Summary: [GTK] Fix return-stack-address warnings
Product: WebKit Reporter: Philippe Normand <philn>
Component: WebKitGTKAssignee: Philippe Normand <philn>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
Philippe Normand
Comment 1 2025-04-26 12:11:13 PDT
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.