From f0af997fad5335a2dfc4cc6a7f6bf9eeec7e4031 Mon Sep 17 00:00:00 2001 From: "Michael R. Blair" Date: Sat, 3 Jun 2006 08:00:15 +0000 Subject: [PATCH] Fixed some compiler warnings: 1. Added missing `#include "outf.h"' directive (for `outf_error()'). 2. Conditionalize `computed_checksum' decl to avoid "unused" warning. --- v7/src/microcode/load.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/v7/src/microcode/load.c b/v7/src/microcode/load.c index 2b8e26aa8..652729b94 100644 --- a/v7/src/microcode/load.c +++ b/v7/src/microcode/load.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: load.c,v 9.41 2003/02/14 18:28:19 cph Exp $ +$Id: load.c,v 9.42 2006/06/03 08:00:15 ihtfisp Exp $ Copyright (c) 1987-1999 Massachusetts Institute of Technology @@ -26,6 +26,8 @@ USA. /* This file contains common code for reading internal format binary files. */ +#include "outf.h" /* Formatted output for errors */ + #include "fasl.h" #define FASL_FILE_FINE 0 @@ -69,8 +71,12 @@ static long dumped_processor_type, dumped_interface_version, dumped_memory_base; -static unsigned long - dumped_checksum, computed_checksum; +static unsigned long dumped_checksum; + +#ifndef INHIBIT_CHECKSUMS +static unsigned long computed_checksum; +#endif /* INHIBIT_CHECKSUMS */ + static SCHEME_OBJECT Ext_Prim_Vector, -- 2.25.1