kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/tools_clang_atomic_alignment' into 'master'
cmake: add "-Wno-atomic-alignment" flag to cmake script Closes LLVM-145 See merge request espressif/esp-idf!17563pull/8755/head
commit
cabdd25e7f
|
@ -116,6 +116,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|||
# Multiple cases of attributes unknown to clang, for example
|
||||
# __attribute__((optimize("-O3")))
|
||||
list(APPEND compile_options "-Wno-unknown-attributes")
|
||||
# Disable Clang warnings for atomic operations with access size
|
||||
# more then 4 bytes
|
||||
list(APPEND compile_options "-Wno-atomic-alignment")
|
||||
# Clang also produces many -Wunused-function warnings which GCC doesn't.
|
||||
# However these aren't treated as errors.
|
||||
endif()
|
||||
|
|
Ładowanie…
Reference in New Issue