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)
4343 list (APPEND compile_options "-fno-rtti" )
4444 list (APPEND compile_options "-Wall" )
4545 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 ()
4650 list (APPEND compile_options "-Wconversion" )
4751 list (APPEND compile_options "-Wno-sign-conversion" )
4852 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
178178allocated/deallocated objects. So, use these functions carefully and only
179179when it is absolutely clear that constructor and destructor invocation is
180180not 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