Fixed some compiler warnings:
authorMichael R. Blair <edu/mit/csail/zurich/ziggy>
Sat, 3 Jun 2006 08:00:15 +0000 (08:00 +0000)
committerMichael R. Blair <edu/mit/csail/zurich/ziggy>
Sat, 3 Jun 2006 08:00:15 +0000 (08:00 +0000)
1. Added missing `#include "outf.h"' directive (for `outf_error()').
2. Conditionalize `computed_checksum' decl to avoid "unused" warning.

v7/src/microcode/load.c

index 2b8e26aa8f6024e0ce83feed027b43dd4d863d7d..652729b948c005dc9768f5b0c8de34e254d3f808 100644 (file)
@@ -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. */
 \f
+#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,