Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eliminate [-Wformat-zero-length] and [-Wunused-but-set-variable] warn…
…ing message ``` In file included from /__w/mros2-mbed/mros2-mbed/mros2/include/mros2.h:9, from /__w/mros2-mbed/mros2-mbed/workspace/mturtle_teleop/app.cpp:17: /__w/mros2-mbed/mros2-mbed/workspace/mturtle_teleop/app.cpp: In function 'int main()': /__w/mros2-mbed/mros2-mbed/workspace/mturtle_teleop/app.cpp:116:18: warning: zero-length gnu_printf format string [-Wformat-zero-length] 116 | MROS2_INFO(""); | ^~ /__w/mros2-mbed/mros2-mbed/mros2/include/mros2/logging.h:46:12: note: in definition of macro 'MROS2_INFO' 46 | printf(__VA_ARGS__); \ | ^~~~~~~~~~~ /__w/mros2-mbed/mros2-mbed/workspace/mturtle_teleop/app.cpp:88:10: warning: variable 'fds' set but not used [-Wunused-but-set-variable] 88 | pollfh fds[1]; | ^~~ /__w/mros2-mbed/mros2-mbed/workspace/mturtle_teleop/app.cpp:95:8: warning: unused variable 'c' [-Wunused-variable] 95 | char c; | ^ ```
- Loading branch information