Hi,
There are warnings during the compilation (gcc 7.4) in file ydlidar/sdk/include/Console.h:
/home/mik/catkin_ws/src/ydlidar/sdk/include/Console.h: In member function ‘void ydlidar::Console::show(const char*, ...)’:
/home/mik/catkin_ws/src/ydlidar/sdk/include/Console.h:40:20: warning: format not a string literal and no format arguments [-Wformat-security]
printf (out);
It appears 5 times (line 40, 53, 69, 85 ad 104). It can easily be fixed, using:
Hi, There are warnings during the compilation (gcc 7.4) in file ydlidar/sdk/include/Console.h:
It appears 5 times (line 40, 53, 69, 85 ad 104). It can easily be fixed, using:
instead of the direct
printf(out)
line.regards, Mik