blob: 2d7b4efda701580d8acbe7970a3d09763283f415 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 2d12629f768d2459b1fc8a8ca0c38024d84bc195 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 Aug 2022 11:32:12 -0700
4Subject: [PATCH 3/5] mbedtls: Disable documentation warning as error with
5 clang
6
7There are shortcomings with doxygen info which clang-15+ flags, dont
8treat them as errors
9
10Signed-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
15diff --git a/lib/mbedtls-2.28.0/CMakeLists.txt b/lib/mbedtls-2.28.0/CMakeLists.txt
16index 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--
292.37.1
30