Skip to content

Commit

Permalink
Add -Wno-format-truncation to root project (#2719)
Browse files Browse the repository at this point in the history
* Remove BUILD_TYPE=Release

* Add -Wno-format-truncation

* Only push to docs branch if from devel branch

* Only when not clang

* lock gcc version

* Lock to GCC and remove extra stuff

* debugging

* more debugging...

* Revert changes to autodocs CI

* Don't use -Wno-format-truncation when using clang-tidy
  • Loading branch information
thomas-bc authored May 21, 2024
1 parent bd2296f commit 0fe467c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 0fe467c

Please sign in to comment.