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
This commit is contained in:
@@ -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
|
||||
<tt><ref id="pragma-checkstack" name="#pragma checkstack"></tt> for an
|
||||
explanation of this feature.
|
||||
|
||||
|
||||
|
||||
<tag><tt>--code-name seg</tt></tag>
|
||||
|
||||
@@ -383,11 +383,27 @@ Here is a description of all the command line options:
|
||||
|
||||
|
||||
<label id="option-W">
|
||||
<tag><tt>-W</tt></tag>
|
||||
<tag><tt>-W name[,name]</tt></tag>
|
||||
|
||||
This option will suppress any warnings generated by the compiler. Since
|
||||
any source file may be written in a manner that it will not produce
|
||||
compiler warnings, using this option is usually not a good idea.
|
||||
This option allows to control warnings generated by the compiler. It is
|
||||
followed by a comma separated list of warnings that should be enabled or
|
||||
disabled. To disable a warning, its name is prefixed by a minus sign. If
|
||||
no such prefix exists, or the name is prefixed by a plus sign, the warning
|
||||
is enabled.
|
||||
|
||||
The following warning names are currently recognized:
|
||||
<descrip>
|
||||
<tag><tt/error/</tag>
|
||||
Treat all warnings as errors.
|
||||
<tag><tt/unknown-pragma/</tag>
|
||||
Warn about known #pragmas.
|
||||
<tag><tt/unused-label/</tag>
|
||||
Warn about unused labels.
|
||||
<tag><tt/unused-param/</tag>
|
||||
Warn about unused function parameters.
|
||||
<tag><tt/unused-var/</tag>
|
||||
Warn about unused variables.
|
||||
</descrip>
|
||||
|
||||
</descrip><p>
|
||||
|
||||
@@ -398,7 +414,7 @@ The compiler will accept one C file per invocation and create a file with
|
||||
the same base name, but with the extension replaced by ".s". The output
|
||||
file contains assembler code suitable for the use with the ca65 macro
|
||||
assembler.
|
||||
|
||||
|
||||
Include files in single quotes are searched in the following places:
|
||||
<enum>
|
||||
<item>The current directory.
|
||||
@@ -411,7 +427,7 @@ Include files in angle brackets are searched in the following places:
|
||||
<item>A compiled in directory which is often <tt>/usr/lib/cc65/include</tt> on
|
||||
Linux systems.
|
||||
<item>The value of the environment variable <tt/CC65_INC/ if it is defined.
|
||||
<item>A subdirectory named <tt/include/ of the directory defined in the
|
||||
<item>A subdirectory named <tt/include/ of the directory defined in the
|
||||
environment variable <tt/CC65_HOME/, if it is defined.
|
||||
<item>Any directory added with the <tt/-I/ option on the command line.
|
||||
</enum>
|
||||
|
||||
Reference in New Issue
Block a user