forked from gazebosim/gz-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (gazebosim#2375)
* Use latest 1.14 google-test in gtest_setup Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org> * 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 <jrivero@osrfoundation.org> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
- 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