Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 2d12629f768d2459b1fc8a8ca0c38024d84bc195 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 9 Aug 2022 11:32:12 -0700 |
| 4 | Subject: [PATCH 3/5] mbedtls: Disable documentation warning as error with |
| 5 | clang |
| 6 | |
| 7 | There are shortcomings with doxygen info which clang-15+ flags, dont |
| 8 | treat them as errors |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | lib/mbedtls-2.28.0/CMakeLists.txt | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/lib/mbedtls-2.28.0/CMakeLists.txt b/lib/mbedtls-2.28.0/CMakeLists.txt |
| 16 | index b33c088..c5f886f 100644 |
| 17 | --- a/lib/mbedtls-2.28.0/CMakeLists.txt |
| 18 | +++ b/lib/mbedtls-2.28.0/CMakeLists.txt |
| 19 | @@ -212,7 +212,7 @@ if(CMAKE_COMPILER_IS_GNU) |
| 20 | endif(CMAKE_COMPILER_IS_GNU) |
| 21 | |
| 22 | if(CMAKE_COMPILER_IS_CLANG) |
| 23 | - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral") |
| 24 | + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wno-error=documentation") |
| 25 | set(CMAKE_C_FLAGS_COVERAGE "-O0 -g3 --coverage") |
| 26 | set(CMAKE_C_FLAGS_ASAN "-fsanitize=address -fno-common -fsanitize=undefined -fno-sanitize-recover=all -O3") |
| 27 | set(CMAKE_C_FLAGS_ASANDBG "-fsanitize=address -fno-common -fsanitize=undefined -fno-sanitize-recover=all -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sibling-calls") |
| 28 | -- |
| 29 | 2.37.1 |
| 30 | |