1018c1018,1019
< new_env.Append(CXXFLAGS='-Wmissing-declarations')
---
> new_env.Append(CXXFLAGS=['-Wmissing-declarations',
> '-Wdelete-non-virtual-dtor'])
1026c1027,1028
< '-Wno-unused-but-set-variable'])
---
> '-Wno-unused-but-set-variable',
> '-Wno-maybe-uninitialized'])
1028,1035d1029
< # If gcc supports it, also warn for deletion of derived
< # classes with non-virtual desctructors. For gcc >= 4.7 we
< # also have to disable warnings about the SWIG code having
< # potentially uninitialized variables.
< if compareVersions(env['GCC_VERSION'], '4.7') >= 0:
< new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor')
< swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized')
<
1045,1048d1038
< # Always enable the warning for deletion of derived classes
< # with non-virtual destructors
< new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor'])
<