Skip to content

Commit 09dc37d

Browse files
authored
Silence a CWrapper warning on gcc11 (#75)
1 parent cb34b46 commit 09dc37d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwrapper/scrutiny_cwrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ extern "C"
9494
scrutiny_c_rpv_write_callback_t const wr_cb)
9595
{
9696
get_config(config)->set_published_values(
97-
reinterpret_cast<scrutiny::RuntimePublishedValue const *const>(array), // should match as per static_assert above
97+
reinterpret_cast<scrutiny::RuntimePublishedValue const *>(array), // should match as per static_assert above
9898
nbr,
99-
reinterpret_cast<scrutiny::RpvReadCallback>(rd_cb), // Expect signature to match
100-
reinterpret_cast<scrutiny::RpvWriteCallback>(wr_cb)); // Expect signature to match
99+
reinterpret_cast<scrutiny::RpvReadCallback>(reinterpret_cast<void *>(rd_cb)), // Expect signature to match
100+
reinterpret_cast<scrutiny::RpvWriteCallback>(reinterpret_cast<void *>(wr_cb))); // Expect signature to match
101101
}
102102

103103
void scrutiny_c_config_set_loops(scrutiny_c_config_t *config, scrutiny_c_loop_handler_t **loops, uint8_t const loop_count)

0 commit comments

Comments
 (0)