-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GCC/CMake warnings for Noble (#2375)
* Use latest 1.14 google-test in gtest_setup Signed-off-by: Jose Luis Rivero <[email protected]> * Make gcc happy about dangling pointer GCC is emitting a warning about a possible danling pointer on table like definitions: warning: possibly dangling reference to a temporary [-Wdangling-reference] 660 | auto const& table = get_current_events_table(state_indexes{}); | ^~~~~ Which I think that really comes from the use of state_indexes{} as argument: note: the temporary was destroyed at the end of the full expression 660 | auto const& table = get_current_events_table(state_indexes{}); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ Clang is quiet about this and make me think that is a false positive since the metaprogramming code is using just the type of the state_indexes as much as I can see. --------- Signed-off-by: Jose Luis Rivero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
- Loading branch information
Showing
3 changed files
with
18 additions
and
11 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
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
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