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

dedicated class and library for parameter handling #57

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
[DBG] turn 'switch' errors into warnings to notify about unhandled va…
…lues

Many sections of the code rely on switches over the ControlType enum to
handle the different libcamera control types. When newer enum values are
added with newer versions of libcamera, the 'switch' errors (-Wall) will
prevent compilation even though the node will continue to work without
supporting the new types.

Relax this by turning all 'switch' errors into warnings again to notify
the developer and implement support for these new type enum values later.
  • Loading branch information
christianrauch committed Dec 15, 2024
commit ff3dcd3add8660938ef77109aa5d9548e324120c
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 17)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-Wno-error=switch)
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif()

Expand Down