File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ typedef PVOID HANDLE;
3434
3535namespace llvm {
3636
37- #if LLVM_ON_UNIX || _WIN32
37+ #if defined( LLVM_ON_UNIX) || defined( _WIN32)
3838
3939// / LLVM thread following std::thread interface with added constructor to
4040// / specify stack size.
@@ -49,7 +49,7 @@ class thread {
4949 }
5050
5151public:
52- #if LLVM_ON_UNIX
52+ #ifdef LLVM_ON_UNIX
5353 using native_handle_type = pthread_t ;
5454 using id = pthread_t ;
5555 using start_routine_type = void *(*)(void *);
Original file line number Diff line number Diff line change @@ -791,26 +791,26 @@ function(add_mlir_python_extension libname extname)
791791 get_property (NB_LIBRARY_TARGET_NAME TARGET ${libname} PROPERTY LINK_LIBRARIES )
792792 target_compile_options (${NB_LIBRARY_TARGET_NAME}
793793 PRIVATE
794- -Wall -Wextra -Wpedantic
795794 -Wno-c++98-compat-extra-semi
796795 -Wno-cast-qual
797796 -Wno-covered-switch-default
798797 -Wno-deprecated-literal-operator
799798 -Wno-nested-anon-types
800799 -Wno-unused-parameter
801800 -Wno-zero-length -array
801+ -Wno-missing-field-initializers
802802 ${eh_rtti_enable} )
803803
804804 target_compile_options (${libname}
805805 PRIVATE
806- -Wall -Wextra -Wpedantic
807806 -Wno-c++98-compat-extra-semi
808807 -Wno-cast-qual
809808 -Wno-covered-switch-default
810809 -Wno-deprecated-literal-operator
811810 -Wno-nested-anon-types
812811 -Wno-unused-parameter
813812 -Wno-zero-length -array
813+ -Wno-missing-field-initializers
814814 ${eh_rtti_enable} )
815815 endif ()
816816
You can’t perform that action at this time.
0 commit comments