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', 929 '-Wno-unused-but-set-variable']) |
930 |
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 --- |