Assembla home | Assembla project page
 

Changeset 743

Show
Ignore:
Timestamp:
04/18/09 12:45:10 (1 year ago)
Author:
phyrephox
Message:

new buildconf.inc flag - OPT_WARNINGS. Enable if you want to be flooded with warnings. should be helpful in cleaning up the code at a later time.
read more about it here: http://chdk.setepontos.com/index.php/topic,2509.msg32191.html#msg32191

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/buildconf.inc

    r701 r743  
    1414#OPT_MD_DEBUG=1 
    1515#OPT_FI2=1                  // needs proper fi2.inc in platform/ !!! see http://chdk.setepontos.com/index.php/topic,2995.0.html 
     16#OPT_WARNINGS=1              // if enabled, compiler will produce a lot of warnings, maybe not always correct ones, see http://chdk.setepontos.com/index.php/topic,2509.msg32191.html#msg32191 
    1617#!OPT_UBASIC=1              // Shall ubasic be compiled into build? not done yet 
    1718#!OPT_LUA=1                 // Shall lua support be compiled into build? not done yet 
    1819#!OPT_SYMBOLS=1             // the symbols / not done yet 
    19 #!OPT_LANGUAGEINTERFACE=1   // for people who won't use lang files at all / not done yer 
     20#!OPT_LANGUAGEINTERFACE=1   // for people who won't use lang files at all / not done yet 
  • trunk/makefile.inc

    r740 r743  
    328328endif 
    329329 
     330ifdef OPT_WARNINGS 
     331     ifeq ($(GCC_VERSION_MAJOR),3) 
     332           CFLAGS+=-Wwrite-strings -Wsign-compare -Wunused -Wno-unused-parameter 
     333           HOSTCFLAGS+=-Wwrite-strings -Wsign-compare -Wunused -Wno-unused-parameter 
     334     endif 
     335     ifeq ($(GCC_VERSION_MAJOR),4) 
     336           CFLAGS+=-Wextra -fdiagnostics-show-option -Wno-missing-field-initializers -Wunused -Wno-unused-parameter 
     337           #HOSTCFLAGS+=-Wextra -fdiagnostics-show-option -Wno-missing-field-initializers -Wunused -Wno-unused-parameter 
     338     endif 
     339endif 
     340 
    330341########################################################################## 
    331342