Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation warnings. #24

Open
mbriday opened this issue Aug 19, 2019 · 0 comments
Open

compilation warnings. #24

mbriday opened this issue Aug 19, 2019 · 0 comments

Comments

@mbriday
Copy link

mbriday commented Aug 19, 2019

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:

      printf ("%s",out);

instead of the direct printf(out) line.

regards,
Mik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant