* add global warnings flag to hal/common
@ 2009-02-02 13:46 Bart Veer
0 siblings, 0 replies; only message in thread
From: Bart Veer @ 2009-02-02 13:46 UTC (permalink / raw)
To: ecos-patches
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-02 13:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-02 13:46 add global warnings flag to hal/common Bart Veer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).