]> granicus.if.org Git - yasm/commit
Add warning class (YASM_WARN_UNINIT_CONTENTS) to turn off the
authorPeter Johnson <peter@tortall.net>
Thu, 3 Nov 2005 03:49:10 +0000 (03:49 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 3 Nov 2005 03:49:10 +0000 (03:49 -0000)
commit730fdd725fb8ca25f5fe9e9e69995d7c022fd78e
treebda3852718b31f09477e8021d5ac0f70260067a4
parentbddebf00922b73b835f4c34ee06dfbace1c2b1ef
Add warning class (YASM_WARN_UNINIT_CONTENTS) to turn off the
"uninitialized data in code/data section: zeroing" warning.  This can now
be turned off using -Wno-uninit-contents on the command line.

* errwarn.h (yasm_warn_class): Add warning class.
* errwarn.c (yasm_errwarn_initialize): Default it to enabled.

* yasm.c (opt_warning_handler): Add as option.

* xdf-objfmt.c, elf-objfmt.c, bin-objfmt.c, coff-objfmt.c: Change warning
class for this warning.

svn path=/trunk/yasm/; revision=1307
frontends/yasm/yasm.c
libyasm/errwarn.c
libyasm/errwarn.h
modules/objfmts/bin/bin-objfmt.c
modules/objfmts/coff/coff-objfmt.c
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/xdf/xdf-objfmt.c