1From ab6691e7d1ee0bb65b3123940304f8200bc53588 Mon Sep 17 00:00:00 2001
2From: Mate Toth-Pal <mate.toth-pal@arm.com>
3Date: Thu, 25 May 2023 15:20:53 +0200
4Subject: [PATCH 1/2] Remove compiler options for clang
5
6With more recent clang versions some options trigger warnings in
7the Mbed TLS code, that result in a build error.
8
9The compiler options removed:
10    -Wunreachable-code
11    -Wdocumentation
12---
13 library/CMakeLists.txt | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
17index db20aabe52..0ea1657e6d 100644
18--- a/library/CMakeLists.txt
19+++ b/library/CMakeLists.txt
20@@ -201,7 +201,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
21 endif(CMAKE_COMPILER_IS_GNUCC)
22
23 if(CMAKE_COMPILER_IS_CLANG)
24-    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wdocumentation -Wno-documentation-deprecated-sync -Wunreachable-code")
25+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wno-documentation-deprecated-sync")
26 endif(CMAKE_COMPILER_IS_CLANG)
27
28 if(CMAKE_COMPILER_IS_MSVC)
29--
302.39.5
31
32