-
Notifications
You must be signed in to change notification settings - Fork 9
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
add_compile_options(-w)
is essential in CMakeLists.txt for mros2-esp32 app project due to avoid build error
#16
Comments
error log without this option in the application project
|
This can be an unexpected issue in the situation where we already have mros2-esp32 under |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current implementation requires adding
add_compile_options(-w)
in CMakeLists.txt for mros2-esp32 application project to avoid build errors.https://github.com/mROS-base/mros2-esp32#edit-cmakeliststxt
The issue is caused by
-Werror=format
, that is a type format mismatch in mros2-esp32 logging function.Of course we understand that the correct way is to improve the implementation so that it builds correctly without adding this option. However, we are treating to solve this as a coping mechanism. We will tackle this in the correct way in the future.
Refs:
https://stackoverflow.com/questions/20424625/werror-format-how-can-the-compiler-know
https://esp32.com/viewtopic.php?t=29402
The text was updated successfully, but these errors were encountered: