Fixed a few warnings

git-svn-id: svn://svn.cc65.org/cc65/trunk@938 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-09-15 13:36:59 +00:00
parent 7c67a35771
commit 1a65e30fa0
15 changed files with 27 additions and 28 deletions

View File

@@ -213,7 +213,7 @@ void ConDesSetSegName (unsigned Type, const char* SegName)
/* Set the segment name where the table should go */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && SegName != 0);
PRECONDITION (Type <= CD_TYPE_MAX && SegName != 0);
/* Setting the segment name twice is bad */
CHECK (ConDes[Type].SegName == 0);
@@ -228,7 +228,7 @@ void ConDesSetLabel (unsigned Type, const char* Name)
/* Set the label for the given ConDes type */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && Name != 0);
PRECONDITION (Type <= CD_TYPE_MAX && Name != 0);
/* Setting the label twice is bad */
CHECK (ConDes[Type].Label == 0);
@@ -243,7 +243,7 @@ void ConDesSetCountSym (unsigned Type, const char* Name)
/* Set the name for the given ConDes count symbol */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && Name != 0);
PRECONDITION (Type <= CD_TYPE_MAX && Name != 0);
/* Setting the symbol twice is bad */
CHECK (ConDes[Type].CountSym == 0);
@@ -258,7 +258,7 @@ void ConDesSetOrder (unsigned Type, ConDesOrder Order)
/* Set the sorting oder for the given ConDes table */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX);
PRECONDITION (Type <= CD_TYPE_MAX);
/* Set the order */
ConDes[Type].Order = Order;
@@ -270,7 +270,7 @@ int ConDesHasSegName (unsigned Type)
/* Return true if a segment name is already defined for this ConDes type */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX);
PRECONDITION (Type <= CD_TYPE_MAX);
return (ConDes[Type].SegName != 0);
}
@@ -281,7 +281,7 @@ int ConDesHasLabel (unsigned Type)
/* Return true if a label is already defined for this ConDes type */
{
/* Check the parameters */
PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX);
PRECONDITION (Type <= CD_TYPE_MAX);
return (ConDes[Type].Label != 0);
}

View File

@@ -304,7 +304,7 @@ int main (int argc, char* argv [])
{ "--version", 0, OptVersion },
};
int I;
unsigned I;
/* Initialize the cmdline module */
InitCmdLine (&argc, &argv, "ld65");
@@ -433,7 +433,7 @@ int main (int argc, char* argv [])
}
if (LabelFileName) {
CreateLabelFile ();
}
}
if (DbgFileName) {
CreateDbgFile ();
}

View File

@@ -7,7 +7,7 @@ COMMON = ../common
# Default for the compiler lib search path as compiler define
CDEFS=-DCC65_LIB=\"/usr/lib/cc65/lib/\"
CFLAGS = -g -O2 -Wall -I$(COMMON) $(CDEFS)
CFLAGS = -g -O2 -Wall -W -Wno-unused-parameter -I$(COMMON) $(CDEFS)
CC=gcc
EBIND=emxbind
LDFLAGS=