From b55419af59355ce1c3ba7d955ecbe8916f66ea28 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 8 Oct 2009 13:29:35 +0000 Subject: [PATCH] Rewrote handling of the -W command line option. It is now used to enable or disable warnings by name. git-svn-id: svn://svn.cc65.org/cc65/trunk@4348 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 32 ++++-- src/cc65/error.c | 270 ++++++++++++++++++++++++++++------------------ src/cc65/error.h | 44 +++++--- src/cc65/global.c | 9 +- src/cc65/global.h | 9 +- src/cc65/main.c | 63 +++++++++-- src/cc65/pragma.c | 10 +- src/cc65/symtab.c | 14 ++- 8 files changed, 299 insertions(+), 152 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 443f12798..a1daf3dea 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -64,7 +64,7 @@ Short options: -Os Inline some known functions -T Include source as comment -V Print the compiler version number - -W Suppress warnings + -W name[,name] Enable or disable warnings -d Debug mode -g Add debug info to object file -h Help (this text) @@ -118,7 +118,7 @@ Here is a description of all the command line options: Tells the compiler to generate code that checks for stack overflows. See for an explanation of this feature. - + --code-name seg @@ -383,11 +383,27 @@ Here is a description of all the command line options: