SConscript (10196:be0e1724eb39) | SConscript (10238:b21b3aad6bd1) |
---|---|
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 --- 911 unchanged lines hidden (view full) --- 920 # the SWIG generated code 921 new_env.Append(CXXFLAGS='-Wmissing-declarations') 922 923 if env['GCC']: 924 # Depending on the SWIG version, we also need to supress 925 # warnings about uninitialized variables and missing field 926 # initializers. 927 swig_env.Append(CCFLAGS=['-Wno-uninitialized', | 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 --- 911 unchanged lines hidden (view full) --- 920 # the SWIG generated code 921 new_env.Append(CXXFLAGS='-Wmissing-declarations') 922 923 if env['GCC']: 924 # Depending on the SWIG version, we also need to supress 925 # warnings about uninitialized variables and missing field 926 # initializers. 927 swig_env.Append(CCFLAGS=['-Wno-uninitialized', |
928 '-Wno-missing-field-initializers']) | 928 '-Wno-missing-field-initializers', 929 '-Wno-unused-but-set-variable']) |
929 | 930 |
930 if compareVersions(env['GCC_VERSION'], '4.6') >= 0: 931 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable') 932 | |
933 # If gcc supports it, also warn for deletion of derived 934 # classes with non-virtual desctructors. For gcc >= 4.7 we 935 # also have to disable warnings about the SWIG code having 936 # potentially uninitialized variables. 937 if compareVersions(env['GCC_VERSION'], '4.7') >= 0: 938 new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor') 939 swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized') 940 if env['CLANG']: --- 215 unchanged lines hidden --- | 931 # If gcc supports it, also warn for deletion of derived 932 # classes with non-virtual desctructors. For gcc >= 4.7 we 933 # also have to disable warnings about the SWIG code having 934 # potentially uninitialized variables. 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']: --- 215 unchanged lines hidden --- |