blob: 9e080dae2038bad956cf0c7790d4b05a072baaa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Adjust compile flags for open62541 to build with gcc 9.
--- a/deps/open62541/CMakeLists.txt
+++ b/deps/open62541/CMakeLists.txt
@@ -407,6 +407,8 @@
-Wc++-compat
-fno-strict-aliasing # fewer compiler assumptions about pointer types
-fexceptions # recommended for multi-threaded C code, also in combination with C++ code
+ -Wno-cast-function-type
+ -Wno-restrict
)
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror")
|