Bug 300616
| Summary: | [GStreamer] Clang warns about returning stack value in GStreamerPeerConnectionBackend.cpp | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | Media | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | philn, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=300560 | ||
| Bug Depends on: | |||
| Bug Blocks: | 300625 | ||
Adrian Perez
Build with warnings-as-errors (e.g. developer builds) fails with Clang since 301385@main due to the following:
.../Source/WebCore/Modules/mediastream/gstreamer/GStreamerPeerConnectionBackend.cpp:430:12: error: reference to stack memory associated with local variable 'transceiver' returned [-Werror,-Wreturn-stack-address]
430 | return transceiver.get();
| ^~~~~~~~~~~
1 error generated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
Pull request: https://github.com/WebKit/WebKit/pull/52228
Philippe Normand
*** Bug 300617 has been marked as a duplicate of this bug. ***
EWS
Committed 301402@main (bf68b55937f3): <https://commits.webkit.org/301402@main>
Reviewed commits have been landed. Closing PR #52228 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/162522252>