zenoh-c
zenoh-c copied to clipboard
[Bug] Failed to build SHM examples due to the missing `z_move`
Describe the bug
It would be nice to include the following check in the CI.
To reproduce
➜ cmake -B build -DCMAKE_BUILD_TYPE=Debug -DZENOHC_BUILD_WITH_UNSTABLE_API=true -DZENOHC_BUILD_WITH_SHARED_MEMORY=true
➜ cmake --build build --config Debug --target examples
[ 0%] Built target cargo
[ 3%] Built target z_sub_thr
[ 5%] Built target z_delete
[ 9%] Built target z_get
[ 13%] Built target z_get_liveliness
[ 15%] Building C object examples/CMakeFiles/z_get_shm.dir/z_get_shm.c.o
src/zenoh-c/examples/z_get_shm.c: In function ‘main’:
src/zenoh-c/examples/z_get_shm.c:106:24: error: incompatible types when assigning to type ‘struct z_moved_bytes_t’ from type ‘z_owned_bytes_t *’
106 | opts.payload = &payload;
| ^
make[3]: *** [examples/CMakeFiles/z_get_shm.dir/build.make:76: examples/CMakeFiles/z_get_shm.dir/z_get_shm.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:1100: examples/CMakeFiles/z_get_shm.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1003: examples/CMakeFiles/examples.dir/rule] Error 2
make: *** [Makefile:556: examples] Error 2
System info
- Commit: bb086c8