File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ function(_get_common_compile_options output_var flags)
43
43
list (APPEND compile_options "-fno-rtti" )
44
44
list (APPEND compile_options "-Wall" )
45
45
list (APPEND compile_options "-Wextra" )
46
+ # -DLIBC_WNO_ERROR=ON if you can't build cleanly with -Werror.
47
+ if (NOT LIBC_WNO_ERROR)
48
+ list (APPEND compile_options "-Werror" )
49
+ endif ()
46
50
list (APPEND compile_options "-Wconversion" )
47
51
list (APPEND compile_options "-Wno-sign-conversion" )
48
52
list (APPEND compile_options "-Wimplicit-fallthrough" )
Original file line number Diff line number Diff line change @@ -178,3 +178,11 @@ these functions do not call the constructors and destructors of the
178
178
allocated/deallocated objects. So, use these functions carefully and only
179
179
when it is absolutely clear that constructor and destructor invocation is
180
180
not required.
181
+
182
+ Warnings in sources
183
+ ===================
184
+
185
+ We expect contributions to be free of warnings from the `minimum supported
186
+ compiler versions `__ (and newer).
187
+
188
+ .. __ : https://libc.llvm.org/compiler_support.html#minimum-supported-versions
You can’t perform that action at this time.
0 commit comments