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

Add -Wno-format-truncation to root project #2719

Merged
merged 11 commits into from
May 21, 2024
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
$<$<COMPILE_LANGUAGE:CXX>:-Wno-vla-extension>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-zero-length-array>
)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND NOT DEFINED CMAKE_CXX_CLANG_TIDY)
# The following is not supported by clang, which also causes issues when using clang-tidy
add_compile_options(
-Wno-format-truncation
)
endif()

find_program(VALGRIND valgrind) # Find valgrind, and use it instead of leak check
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen/generate_docs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function make_version
echo "[INFO] Building fprime"
rm -rf "${DOCS_CACHE}"

fprime-util generate --build-cache ${DOCS_CACHE} -DCMAKE_BUILD_TYPE=Release -DFPRIME_SKIP_TOOLS_VERSION_CHECK=ON 1>/dev/null
fprime-util generate --build-cache ${DOCS_CACHE} -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 1>/dev/null
fprime-util build --build-cache ${DOCS_CACHE} --all -j32 1> /dev/null

if (( $? != 0 ))
Expand Down
Loading