Skip to content

Commit 22af56e

Browse files
committed
More warnings by default.
1 parent b161e64 commit 22af56e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compilers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ def get_pch_use_args(self, pch_dir, header):
11061106

11071107

11081108
class GnuCPPCompiler(CPPCompiler):
1109-
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
1109+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch', '-Wnon-virtual-dtor']
11101110
# may need to separate the latter to extra_debug_args or something
11111111
std_debug_args = ['-g']
11121112

@@ -1134,7 +1134,7 @@ def get_soname_args(self, shlib_name, path, soversion):
11341134
return get_gcc_soname_args(self.gcc_type, shlib_name, path, soversion)
11351135

11361136
class ClangCPPCompiler(CPPCompiler):
1137-
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
1137+
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch', '-Wnon-virtual-dtor']
11381138

11391139
def __init__(self, exelist, version, is_cross, exe_wrapper=None):
11401140
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)

0 commit comments

Comments
 (0)