Add a --warnings-as-errors option to cc65 for compatibility reasons.
This commit is contained in:
@@ -742,6 +742,8 @@ static void OptVersion (const char* Opt attribute ((unused)),
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void OptSeglist (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Enable segment listing */
|
||||
@@ -749,6 +751,8 @@ static void OptSeglist (const char* Opt attribute ((unused)),
|
||||
SegList = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void OptWarningsAsErrors (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Generate an error if any warnings occur */
|
||||
@@ -756,6 +760,8 @@ static void OptWarningsAsErrors (const char* Opt attribute ((unused)),
|
||||
WarningsAsErrors = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void OptExpandMacros (const char* Opt attribute ((unused)),
|
||||
const char* Arg attribute ((unused)))
|
||||
/* Expand macros in listing
|
||||
@@ -767,6 +773,8 @@ static void OptExpandMacros (const char* Opt attribute ((unused)),
|
||||
ExpandMacros++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void DoPCAssign (void)
|
||||
/* Start absolute code */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user