SetBaudrate.cpp's warning

It seems it compiles at ./configureFirst.sh and prints a warning during that process:

SetBaudrate.cpp: In function ‘int set_baudrate(int, int)’:
SetBaudrate.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]
  73 | }
     | ^

As set_baudrate() return value is never checked it's not a bug.


Comments

  • You are right, it does not matter. For next release I made them void function so no warning should appear.
Sign In or Register to comment.