Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libcyphal_demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN
list(APPEND CXX_FLAG_SET "-fno-exceptions")
endif()
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Disable PSABI warnings in GCC (on RPi).
list(APPEND CXX_FLAG_SET "-Wno-psabi")
endif()

add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_FLAG_SET}>")

Expand Down
4 changes: 2 additions & 2 deletions libcyphal_demo/src/application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class Application final
/// Defines the footprint size of the type-erased register.
/// The Footprint size is passed to internal unbounded variant
/// which in turn should be big enough to store any register implementation.
/// `12`-pointer size is a trade-off between memory usage and flexibility of what could be stored.
/// 128 bytes size is a trade-off between memory usage and flexibility of what could be stored.
/// Increase this value if you need to store more complex data (like more "big" register's lambdas).
///
static constexpr std::size_t RegisterFootprint = sizeof(void*) * 12;
static constexpr std::size_t RegisterFootprint = 128;

/// Defines general purpose string parameter exposed as mutable register.
///
Expand Down
2 changes: 1 addition & 1 deletion submodules/libcyphal