gazebosim / gz-gui

Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
https://gazebosim.org
Apache License 2.0
66 stars 39 forks source link

Fix compiler warnings in GCC-13 (Noble) #616

Closed j-rivero closed 2 months ago

j-rivero commented 2 months ago

🦟 Bug fix

Summary

GCC-13 is complaining about "pointers returned from a mismatched allocation function" in the UNIT_ImageDisplay_TEST. There are 3 occurences where a shared pointer is created from a simple type while the object handled is really a C array. The commit changes the type to indicate that it is in fact an array.

Failing https://build.osrfoundation.org/job/gz_gui-ci-gz-gui8-noble-amd64/2/

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.