Closed angelrti closed 2 months ago
I tried building this branch with OpenDDS. There are warnings in shape_main.cxx that should be common to all DDS implementations. This is from GCC 11.4
/home/mitza/dds-rtps/srcCxx/shape_main.cxx:533:37: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
533 | if (write_period_us < 0) {
| ~~~~~~~~~~~~~~~~^~~
/home/mitza/dds-rtps/srcCxx/shape_main.cxx:551:36: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
551 | if (read_period_us < 0) {
| ~~~~~~~~~~~~~~~^~~
/home/mitza/dds-rtps/srcCxx/shape_main.cxx:390:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
390 | if (optarg[0] != '\0') {
| ^~
/home/mitza/dds-rtps/srcCxx/shape_main.cxx:412:13: note: here
412 | case 'i': {
| ^~~~
This PR fixes some previous tests that were not working as expected and also adds some new tests.
This modifies the CPP code, so a new executable needs to be generated after merging the PR. This will lead to the creation of a new release.
I'll be merging this PR by Feb 29th, so please, add your feedback before that date.