This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

add global warnings flag to hal/common


This is part of the compiler flags update. It adds a new option
CYGBLD_GLOBAL_WARNFLAGS holding all the standard warning-related flags
which then gets incorporated into all the CYGBLD_GLOBAL_CFLAGS default
settings. Note that -Winline has been removed and -Wno-write-strings
has been added.

Doing things this way is only a small step towards sorting out the
compiler flags properly. That involves a great many complications,
probably best left to a future release.

Bart

2009-01-31  Bart Veer  <bartv@ecoscentric.com>

	* cdl/hal.cdl: add CYGBLD_GLOBAL_WARNFLAGS, as part of global
	compiler flags update.

Index: cdl/hal.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/common/current/cdl/hal.cdl,v
retrieving revision 1.24
diff -u -p -r1.24 hal.cdl
--- cdl/hal.cdl	29 Jan 2009 17:49:13 -0000	1.24
+++ cdl/hal.cdl	2 Feb 2009 13:31:59 -0000
@@ -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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]