diff --git a/mypyc/build.py b/mypyc/build.py index 4f40a6cd08659..a9aa16f5dfee3 100644 --- a/mypyc/build.py +++ b/mypyc/build.py @@ -534,6 +534,10 @@ def mypycify( "-Wno-unused-command-line-argument", "-Wno-unknown-warning-option", "-Wno-unused-but-set-variable", + "-Wno-ignored-optimization-argument", + # Disables C Preprocessor (cpp) warnings + # See https://github.com/mypyc/mypyc/issues/956 + "-Wno-cpp", ] elif compiler.compiler_type == "msvc": # msvc doesn't have levels, '/O2' is full and '/Od' is disable