Bug 292097
| Summary: | [GTK] Fix return-stack-address warnings | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Philippe Normand <philn> |
| Component: | WebKitGTK | Assignee: | Philippe Normand <philn> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Philippe Normand
/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
Pull request: https://github.com/WebKit/WebKit/pull/44554
Michael Catanzaro
*** This bug has been marked as a duplicate of bug 292177 ***