From: Michael R. Blair Date: Sat, 3 Jun 2006 08:00:15 +0000 (+0000) Subject: Fixed some compiler warnings: X-Git-Tag: 20090517-FFI~1042 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f0af997fad5335a2dfc4cc6a7f6bf9eeec7e4031;p=mit-scheme.git Fixed some compiler warnings: 1. Added missing `#include "outf.h"' directive (for `outf_error()'). 2. Conditionalize `computed_checksum' decl to avoid "unused" warning. --- 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,