Commit 854ac57
authored
Disable deprecation warning for get_resource() (#805)
### Changelog
None
### Docs
None
### Description
See #804 for general description of the issue. Missed another API that
was deprecated. This should make the build pass now, verified by
enabling the ros2-testing repo in an ubuntu VM and building
successfully.
Fixes: FLE-165
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Silences deprecated API warnings in `message_definition_cache.cpp` for
compatibility across ROS2 distros.
>
> - Wraps `ament_index_cpp::get_resource("rosidl_interfaces", ...)` with
`#pragma GCC diagnostic push/ignored("-Wdeprecated-declarations")`
(mirroring existing handling for `get_package_share_directory`)
> - No functional logic changes; build noise reduced
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
7aba2b6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 605f0c2 commit 854ac57
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments