parameters: (self)
return_statement: return (flags_except_warning, linkflags)
docstring: Get the flags that are not warning flags.
docstring_summary: Get the flags that are not warning flags.
docstring_tokens: Get the flags that are not warning flags .
function: def get_flags_except_warning(self):
          """Get the flags that are not warning flags. """
          flags_except_warning = ['-m%s' % self.options.m, '-mcx16', '-pipe']
          linkflags = ['-m%s' % self.options.m]
          if self.options.profile == 'debug':
              flags_except_warning += ['-ggdb3', '-fstack-protector']
          elif self.options.profile == 'release':
              flags_except_warning += ['-g', '-DNDEBUG']
          flags_except_warning += [
                  '-D_FILE_OFFSET_BITS=64',
                  '-D__STDC_CONSTANT_MACROS',
                  '-D__STDC_FORMAT_MACROS',
                  '-D__STDC_LIMIT_MACROS',
          ]
  
          if getattr(self.options, 'gprof', False):
              flags_except_warning.append('-pg')
              linkflags.append('-pg')
  
          if getattr(self.options, 'gcov', False):
              if SconsPlatform().gcc_version > '4.1':
                  flags_except_warning.append('--coverage')
                  linkflags.append('--coverage')
              else:
                  flags_except_warning.append('-fprofile-arcs')
                  flags_except_warning.append('-ftest-coverage')
                  linkflags += ['-Wl,--whole-archive', '-lgcov',
                                '-Wl,--no-whole-archive']
  
          flags_except_warning = self._filter_out_invalid_flags(
                  flags_except_warning)
  
          return (flags_except_warning, linkflags)
function_tokens: def get_flags_except_warning ( self ) : flags_except_warning = [ '-m%s' % self . options . m , '-mcx16' , '-pipe' ] linkflags = [ '-m%s' % self . options . m ] if self . options . profile == 'debug' : flags_except_warning += [ '-ggdb3' , '-fstack-protector' ] elif self . options . profile == 'release' : flags_except_warning += [ '-g' , '-DNDEBUG' ] flags_except_warning += [ '-D_FILE_OFFSET_BITS=64' , '-D__STDC_CONSTANT_MACROS' , '-D__STDC_FORMAT_MACROS' , '-D__STDC_LIMIT_MACROS' , ] if getattr ( self . options , 'gprof' , False ) : flags_except_warning . append ( '-pg' ) linkflags . append ( '-pg' ) if getattr ( self . options , 'gcov' , False ) : if SconsPlatform ( ) . gcc_version > '4.1' : flags_except_warning . append ( '--coverage' ) linkflags . append ( '--coverage' ) else : flags_except_warning . append ( '-fprofile-arcs' ) flags_except_warning . append ( '-ftest-coverage' ) linkflags += [ '-Wl,--whole-archive' , '-lgcov' , '-Wl,--no-whole-archive' ] flags_except_warning = self . _filter_out_invalid_flags ( flags_except_warning ) return ( flags_except_warning , linkflags )