File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ What works?
46
46
Changelog
47
47
--------------------
48
48
#### [ Unreleased]
49
+ - Fix cfg warnings < https://github.com/sequenceplanner/r2r/commit/4cb5bd362e81154924cc7dc21f8edbf470c4604a >
50
+ - More convinent one time parameter access < https://github.com/sequenceplanner/r2r/pull/107 >
49
51
50
52
#### [ 0.9.1] - 2024-10-12
51
53
- Minor code fixes: < https://github.com/sequenceplanner/r2r/pull/105 > , < https://github.com/sequenceplanner/r2r/pull/106 >
Original file line number Diff line number Diff line change @@ -150,6 +150,10 @@ pub fn print_cargo_ros_distro() {
150
150
}
151
151
}
152
152
153
+ #[ cfg( feature = "doc-only" ) ]
154
+ pub fn print_cargo_used_cfgs ( _message_cfgs : & [ & str ] ) { }
155
+
156
+ #[ cfg( not( feature = "doc-only" ) ) ]
153
157
pub fn print_cargo_used_cfgs ( message_cfgs : & [ & str ] ) {
154
158
// Declare all supported ros distros as cfg directives for cargo
155
159
for d in SUPPORTED_ROS_DISTROS {
Original file line number Diff line number Diff line change 1
1
#![ allow( non_upper_case_globals) ]
2
2
#![ allow( non_camel_case_types) ]
3
3
#![ allow( non_snake_case) ]
4
- #![ allow( improper_ctypes) ]
5
4
#![ allow( dead_code) ]
6
5
// Silence "`extern` fn uses type `u128`, which is not FFI-safe"
7
6
// As of rustc 1.78, this has been fixed.
8
7
// It could be good to still warn if building with an older rust version.
9
8
#![ allow( improper_ctypes) ]
9
+ #![ allow( improper_ctypes_definitions) ]
10
10
include ! ( concat!( env!( "OUT_DIR" ) , "/rcl_bindings.rs" ) ) ;
11
11
12
12
use std:: ffi:: { CStr , CString } ;
You can’t perform that action at this time.
0 commit comments