-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f61f15c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fix doesn't change anything, the warning remains
f61f15c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f61f15c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the warning reported in #3415 which is trivial to check: https://godbolt.org/z/ajsGKe4nE. If you have another example please provide a godbolt repro.
f61f15c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know whether this has the same root cause as gendalph's issue, but it's at least very similar, The important bit in the code is the
const
for the path; without it, it does not create a warning and with it, it does.It can also be found at: https://godbolt.org/z/KhcYo4q8z
I'm not sure whether it reproduces on trunk, but I run into the "possibly dangling reference to a temporary" warning at line 1674 of this diff with version 10.0.0.
f61f15c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rubidium42, this false positive is also suppressed now (ef55d4f).