SConscript (10238:b21b3aad6bd1) | SConscript (10278:362875aec1ba) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 926 unchanged lines hidden (view full) --- 935 if compareVersions(env['GCC_VERSION'], '4.7') >= 0: 936 new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor') 937 swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized') 938 if env['CLANG']: 939 # Always enable the warning for deletion of derived classes 940 # with non-virtual destructors 941 new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor']) 942 | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 926 unchanged lines hidden (view full) --- 935 if compareVersions(env['GCC_VERSION'], '4.7') >= 0: 936 new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor') 937 swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized') 938 if env['CLANG']: 939 # Always enable the warning for deletion of derived classes 940 # with non-virtual destructors 941 new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor']) 942 |
943 swig_env.Append(CCFLAGS=[ 944 # Some versions of SWIG can return uninitialized values 945 '-Wno-sometimes-uninitialized', 946 # Register storage is requested in a lot of places in 947 # SWIG-generated code. 948 '-Wno-deprecated-register', 949 ]) 950 |
|
943 werror_env = new_env.Clone() 944 werror_env.Append(CCFLAGS='-Werror') 945 946 def make_obj(source, static, extra_deps = None): 947 '''This function adds the specified source to the correct 948 build environment, and returns the corresponding SCons Object 949 nodes''' 950 --- 203 unchanged lines hidden --- | 951 werror_env = new_env.Clone() 952 werror_env.Append(CCFLAGS='-Werror') 953 954 def make_obj(source, static, extra_deps = None): 955 '''This function adds the specified source to the correct 956 build environment, and returns the corresponding SCons Object 957 nodes''' 958 --- 203 unchanged lines hidden --- |