# HG changeset patch # User bartv # Date 1233582367 0 # Node ID 00813b25dec2bac441dbf571669cfcef34d704a5 # Parent 4794a43c1c7c33e85049f1ff941237a1ed960301 Compiler flags update diff --git a/packages/hal/common/current/ChangeLog b/packages/hal/common/current/ChangeLog --- a/packages/hal/common/current/ChangeLog +++ b/packages/hal/common/current/ChangeLog @@ -1,3 +1,8 @@ +2009-02-02 Bart Veer + + * cdl/hal.cdl: add CYGBLD_GLOBAL_WARNFLAGS, as part of global + compiler flags update. + 2008-11-21 Bart Veer * include/hal_if.h (CYGNUM_CALL_IF_available_x): fix typo in diff --git a/packages/hal/common/current/cdl/hal.cdl b/packages/hal/common/current/cdl/hal.cdl --- a/packages/hal/common/current/cdl/hal.cdl +++ b/packages/hal/common/current/cdl/hal.cdl @@ -72,6 +72,16 @@ cdl_package CYGPKG_HAL { $(CC) $(CFLAGS) -nostdlib -Wl,-r -T /dev/null -Wl,--whole-archive -o $@ $< } + cdl_option CYGBLD_GLOBAL_WARNFLAGS { + display "Standard compiler warning flags" + parent CYGBLD_GLOBAL_OPTIONS + flavor data + no_define + calculated { "-Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual -Wno-write-strings " } + description " + This option specifies the default warning-related compiler flags used + on all eCos platforms." + } cdl_component CYGPKG_HAL_COMMON { display "Platform-independent HAL options"