static unsigned BinWriteExpr (ExprNode* E, int Signed, unsigned Size,
- unsigned long Offs, void* Data)
+ unsigned long Offs attribute ((unused)),
+ void* Data)
/* Called from SegWrite for an expression. Evaluate the expression, check the
* range and write the expression value to the file.
*/
-static int BinUnresolved (const char* Name, void* D)
+static int BinUnresolved (const char* Name attribute ((unused)), void* D)
/* Called if an unresolved symbol is encountered */
{
/* Unresolved symbols are an error in binary format. Bump the counter
-static void OptConfig (const char* Opt, const char* Arg)
+static void OptConfig (const char* Opt attribute ((unused)), const char* Arg)
/* Define the config file */
{
if (CfgAvail ()) {
-static void OptDbgFile (const char* Opt, const char* Arg)
+static void OptDbgFile (const char* Opt attribute ((unused)), const char* Arg)
/* Give the name of the debug file */
{
DbgFileName = 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 ();
-static void OptMapFile (const char* Opt, const char* Arg)
+static void OptMapFile (const char* Opt attribute ((unused)), const char* Arg)
/* Give the name of the map file */
{
MapFileName = Arg;
-static void OptTarget (const char* Opt, const char* Arg)
+static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
/* Set the target system */
{
const TargetDesc* D;
-static void OptVersion (const char* Opt, const char* Arg)
+static void OptVersion (const char* Opt attribute ((unused)),
+ const char* Arg attribute ((unused)))
/* Print the assembler version */
{
fprintf (stderr,
{
/* Program long options */
static const LongOpt OptTab[] = {
- { "--config", 1, OptConfig },
+ { "--config", 1, OptConfig },
{ "--dbgfile", 1, OptDbgFile },
- { "--help", 0, OptHelp },
- { "--mapfile", 1, OptMapFile },
- { "--start-addr", 1, OptStartAddr },
- { "--target", 1, OptTarget },
- { "--version", 0, OptVersion },
+ { "--help", 0, OptHelp },
+ { "--mapfile", 1, OptMapFile },
+ { "--start-addr", 1, OptStartAddr },
+ { "--target", 1, OptTarget },
+ { "--version", 0, OptVersion },
};
unsigned I;
- /* Initialize the cmdline module */
+ /* Initialize the cmdline module */
InitCmdLine (&argc, &argv, "ld65");
/* Evaluate the CC65_LIB environment variable */
-static void O65WriteTextSeg (O65Desc* D, Memory* M)
+static void O65WriteTextSeg (O65Desc* D, Memory* M attribute ((unused)))
/* Write the code segment to the o65 output file */
{
/* Initialize variables */
-static void O65WriteDataSeg (O65Desc* D, Memory* M)
+static void O65WriteDataSeg (O65Desc* D, Memory* M attribute ((unused)))
/* Write the data segment to the o65 output file */
{
/* Initialize variables */
-static void O65WriteBssSeg (O65Desc* D, Memory* M)
+static void O65WriteBssSeg (O65Desc* D, Memory* M attribute ((unused)))
/* "Write" the bss segments to the o65 output file. This will only update
* the relevant header fields.
*/
-static void O65WriteZPSeg (O65Desc* D, Memory* M)
+static void O65WriteZPSeg (O65Desc* D, Memory* M attribute ((unused)))
/* "Write" the zeropage segments to the o65 output file. This will only update
* the relevant header fields.
*/