Skip to content

Commit 5ecf4d9

Browse files
committed
Update README and fix build docs mistake.
1 parent 4cb5bd3 commit 5ecf4d9

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ What works?
4646
Changelog
4747
--------------------
4848
#### [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>
4951

5052
#### [0.9.1] - 2024-10-12
5153
- Minor code fixes: <https://github.com/sequenceplanner/r2r/pull/105>, <https://github.com/sequenceplanner/r2r/pull/106>

r2r_common/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ pub fn print_cargo_ros_distro() {
150150
}
151151
}
152152

153+
#[cfg(feature = "doc-only")]
154+
pub fn print_cargo_used_cfgs(_message_cfgs: &[&str]) {}
155+
156+
#[cfg(not(feature = "doc-only"))]
153157
pub fn print_cargo_used_cfgs(message_cfgs: &[&str]) {
154158
// Declare all supported ros distros as cfg directives for cargo
155159
for d in SUPPORTED_ROS_DISTROS {

r2r_rcl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#![allow(non_upper_case_globals)]
22
#![allow(non_camel_case_types)]
33
#![allow(non_snake_case)]
4-
#![allow(improper_ctypes)]
54
#![allow(dead_code)]
65
// Silence "`extern` fn uses type `u128`, which is not FFI-safe"
76
// As of rustc 1.78, this has been fixed.
87
// It could be good to still warn if building with an older rust version.
98
#![allow(improper_ctypes)]
9+
#![allow(improper_ctypes_definitions)]
1010
include!(concat!(env!("OUT_DIR"), "/rcl_bindings.rs"));
1111

1212
use std::ffi::{CStr, CString};

0 commit comments

Comments
 (0)