Use __attribute ((unused)) instead of -Wno-unused-parameter
git-svn-id: svn://svn.cc65.org/cc65/trunk@988 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -238,14 +238,14 @@ void OH_AbsoluteY (const OpcDesc* D)
|
||||
|
||||
|
||||
|
||||
void OH_AbsoluteLong (const OpcDesc* D)
|
||||
void OH_AbsoluteLong (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_AbsoluteLongX (const OpcDesc* D)
|
||||
void OH_AbsoluteLongX (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
@@ -269,7 +269,7 @@ void OH_Relative (const OpcDesc* D)
|
||||
|
||||
|
||||
|
||||
void OH_RelativeLong (const OpcDesc* D)
|
||||
void OH_RelativeLong (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
@@ -332,49 +332,49 @@ void OH_AbsoluteIndirect (const OpcDesc* D)
|
||||
|
||||
|
||||
|
||||
void OH_StackRelative (const OpcDesc* D)
|
||||
void OH_StackRelative (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_DirectIndirectLongX (const OpcDesc* D)
|
||||
void OH_DirectIndirectLongX (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_StackRelativeIndirectY (const OpcDesc* D)
|
||||
void OH_StackRelativeIndirectY (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_DirectIndirectLong (const OpcDesc* D)
|
||||
void OH_DirectIndirectLong (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_DirectIndirectLongY (const OpcDesc* D)
|
||||
void OH_DirectIndirectLongY (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_BlockMove (const OpcDesc* D)
|
||||
void OH_BlockMove (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OH_AbsoluteXIndirect (const OpcDesc* D)
|
||||
void OH_AbsoluteXIndirect (const OpcDesc* D attribute ((unused)))
|
||||
{
|
||||
Error ("Not implemented");
|
||||
}
|
||||
@@ -405,4 +405,3 @@ void OH_JmpAbsoluteIndirect (const OpcDesc* D)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -143,7 +143,8 @@ static void OptCPU (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptFormFeeds (const char* Opt, const char* Arg)
|
||||
static void OptFormFeeds (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Add form feeds to the output */
|
||||
{
|
||||
FormFeeds = 1;
|
||||
@@ -151,7 +152,8 @@ static void OptFormFeeds (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptHelp (const char* Opt, const char* Arg)
|
||||
static void OptHelp (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print usage information and exit */
|
||||
{
|
||||
Usage ();
|
||||
@@ -160,14 +162,10 @@ static void OptHelp (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptPageLength (const char* Opt, const char* Arg)
|
||||
static void OptPageLength (const char* Opt attribute ((unused)), const char* Arg)
|
||||
/* Handle the --pagelength option */
|
||||
{
|
||||
int Len;
|
||||
if (Arg == 0) {
|
||||
NeedArg (Opt);
|
||||
}
|
||||
Len = atoi (Arg);
|
||||
int Len = atoi (Arg);
|
||||
if (Len != 0 && (Len < MIN_PAGE_LEN || Len > MAX_PAGE_LEN)) {
|
||||
AbEnd ("Invalid page length: %d", Len);
|
||||
}
|
||||
@@ -184,7 +182,8 @@ static void OptStartAddr (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptVerbose (const char* Opt, const char* Arg)
|
||||
static void OptVerbose (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Increase verbosity */
|
||||
{
|
||||
++Verbosity;
|
||||
@@ -192,7 +191,8 @@ static void OptVerbose (const char* Opt, const char* Arg)
|
||||
|
||||
|
||||
|
||||
static void OptVersion (const char* Opt, const char* Arg)
|
||||
static void OptVersion (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Print the disassembler version */
|
||||
{
|
||||
fprintf (stderr,
|
||||
@@ -257,7 +257,7 @@ static void OneOpcode (unsigned RemainingBytes)
|
||||
|
||||
case atDWordTab:
|
||||
DWordTable ();
|
||||
break;
|
||||
break;
|
||||
|
||||
case atAddrTab:
|
||||
AddrTable ();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Library dir
|
||||
COMMON = ../common
|
||||
|
||||
CFLAGS = -g -O2 -Wall -W -Wno-unused-parameter -I$(COMMON)
|
||||
CFLAGS = -g -O2 -Wall -W -I$(COMMON)
|
||||
CC=gcc
|
||||
EBIND=emxbind
|
||||
LDFLAGS=
|
||||
|
||||
Reference in New Issue
Block a user