Closed
Bug 1409326
Opened 7 years ago
Closed 7 years ago
AddressRadixTree: address of local variable 'node' returned [-Werror=return-local-addr]
Categories
(Core :: Memory Allocator, defect)
Core
Memory Allocator
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox58 | --- | affected |
People
(Reporter: Sylvestre, Unassigned)
References
Details
In file included from /root/firefox-gcc-last/obj-x86_64-pc-linux-gnu/memory/build/Unified_cpp_memory_build0.cpp:2:0: /root/firefox-gcc-last/memory/build/mozjemalloc.cpp: In member function 'void** AddressRadixTree<Bits>::GetSlot(void*, bool)': /root/firefox-gcc-last/memory/build/mozjemalloc.cpp:1695:10: error: address of local variable 'node' returned [-Werror=return-local-addr] void** node; ^~~~ cc1plus: all warnings being treated as errors With gcc 8 trunk
Reporter | ||
Comment 1•7 years ago
|
||
Glandium, is that a false positive? Thanks
Flags: needinfo?(mh+mozilla)
Comment 2•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #1) > Glandium, is that a false positive? > Thanks I think it's just getting tripped up by the `&node[subkey]` [1] notation. `node` itself points to somewhere in `mRoot` [2]. [1] http://searchfox.org/mozilla-central/rev/a984558fa2bbde6492d3fb918496fc0b0835b2ce/memory/build/mozjemalloc.cpp#1721 [2] http://searchfox.org/mozilla-central/rev/a984558fa2bbde6492d3fb918496fc0b0835b2ce/memory/build/mozjemalloc.cpp#1698
Comment 3•7 years ago
|
||
Seems like a bug in GCC trunk.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(mh+mozilla)
Resolution: --- → INVALID
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•