mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[GH-ISSUE #15] [TheIDE] Functions possibly returning the address of a local variable. [-Wreturn-local-addr] #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ismail-yilmaz on GitHub (Mar 8, 2020).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/15
OS: Linux (5.5.7)
UI: Gnome (3.34)
Compiler: GCC (9.2.1)
GCC complains about two related functions possibly returning the address of a local variable.
1b555b5385/uppsrc/ide/Browser/CodeBrowser.cpp (L237)And
1b555b5385/uppsrc/ide/Browser/CodeBrowser.cpp (L242)@mirek-fidler commented on GitHub (Mar 8, 2020):
This really seems border (for some specific Value, it would be true, but not those returned by Get(i, 1), however code does not know that...), but fix costs a little, so please test with current trunk/head.
@ismail-yilmaz commented on GitHub (Mar 9, 2020):
Thank you.
Compiler warning is gone, and TheIDE compiles without any problem or warning.