Skip to content

Commit ce24d18

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.7
2 parents 3c31cde + bc87064 commit ce24d18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/Support/thread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef PVOID HANDLE;
3434

3535
namespace 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

5151
public:
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 *);

mlir/cmake/modules/AddMLIRPython.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)