Skip to content

add_compile_options(-w) is essential in CMakeLists.txt for mros2-esp32 app project due to avoid build error #16

Closed
@takasehideki

Description

@takasehideki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions