diff --git a/binding.gyp b/binding.gyp index bd26332e..39826f4a 100644 --- a/binding.gyp +++ b/binding.gyp @@ -7,11 +7,13 @@ "-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized", + "-Wpass=transform-warning" ], "cflags_cc": [ "-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized", + "-Wpass=transform-warning", "-std=c++17", ], "include_dirs": [ diff --git a/setup.py b/setup.py index 66abeef7..6dc5cab4 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,7 @@ def get_bool_env_w_name(name: str, preference: bool) -> tuple: compile_args.append("-std=c++17") compile_args.append("-O3") # Maximize performance compile_args.append("-ffast-math") # Maximize floating-point performance + compile_args.append("-Wpass-failed=transform-warning") compile_args.append("-Wno-unknown-pragmas") compile_args.append("-fdiagnostics-color=always") @@ -83,6 +84,7 @@ def get_bool_env_w_name(name: str, preference: bool) -> tuple: compile_args.append("-O3") # Maximize performance compile_args.append("-ffast-math") # Maximize floating-point performance compile_args.append("-fcolor-diagnostics") + compile_args.append("-Wpass-failed=transform-warning") compile_args.append("-Wno-unknown-pragmas") # Simplify debugging, but the normal `-g` may make builds much longer!