SConscript (9419:54d5c0e5852a) SConscript (9554:406fbcf60223)
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

--- 885 unchanged lines hidden (view full) ---

894 swig_env = new_env.Clone()
895 swig_env.Append(CCFLAGS='-Werror')
896 if env['GCC']:
897 swig_env.Append(CCFLAGS=['-Wno-uninitialized', '-Wno-sign-compare',
898 '-Wno-parentheses', '-Wno-unused-label',
899 '-Wno-unused-value'])
900 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
901 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
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

--- 885 unchanged lines hidden (view full) ---

894 swig_env = new_env.Clone()
895 swig_env.Append(CCFLAGS='-Werror')
896 if env['GCC']:
897 swig_env.Append(CCFLAGS=['-Wno-uninitialized', '-Wno-sign-compare',
898 '-Wno-parentheses', '-Wno-unused-label',
899 '-Wno-unused-value'])
900 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
901 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
902
903 # Add additional warnings here that should not be applied to
904 # the SWIG generated code
905 new_env.Append(CXXFLAGS='-Wmissing-declarations')
902 if env['CLANG']:
903 swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
904
906 if env['CLANG']:
907 swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
908
909 # Add additional warnings here that should not be applied to
910 # the SWIG generated code
911 new_env.Append(CXXFLAGS='-Wmissing-declarations')
912
905 werror_env = new_env.Clone()
906 werror_env.Append(CCFLAGS='-Werror')
907
908 def make_obj(source, static, extra_deps = None):
909 '''This function adds the specified source to the correct
910 build environment, and returns the corresponding SCons Object
911 nodes'''
912

--- 165 unchanged lines hidden ---
913 werror_env = new_env.Clone()
914 werror_env.Append(CCFLAGS='-Werror')
915
916 def make_obj(source, static, extra_deps = None):
917 '''This function adds the specified source to the correct
918 build environment, and returns the corresponding SCons Object
919 nodes'''
920

--- 165 unchanged lines hidden ---