Some anti-warning changes from Greg Harvey.
authorJim Blandy <jimb@red-bean.com>
Sat, 3 Oct 1998 14:12:59 +0000 (14:12 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 3 Oct 1998 14:12:59 +0000 (14:12 +0000)
* gh_data.c (gh_scm2doubles): Initialize m, to avoid compiler
warnings when it doesn't understand our NORETURN declarations in
error.h.
* posix.c (scm_mknod): Similar.

libguile/gh_data.c
libguile/posix.c

index 0282c2c..a93101c 100644 (file)
@@ -229,7 +229,7 @@ double*
 gh_scm2doubles (SCM obj)
 {
   int i, n;
-  double *m;
+  double *m = 0;
   SCM val;
   if (!SCM_NIMP (obj))
     scm_wrong_type_arg (0, 0, obj);
index e35c640..90a50ce 100644 (file)
@@ -1122,7 +1122,7 @@ scm_mknod(path, type, perms, dev)
 #ifdef HAVE_MKNOD
   int val;
   char *p;
-  int ctype;
+  int ctype = 0;
 
   SCM_ASSERT (SCM_NIMP(path) && SCM_ROSTRINGP(path), path, SCM_ARG1, s_mknod);
   SCM_ASSERT (SCM_NIMP(type) && SCM_SYMBOLP (type), type, SCM_ARG2, s_mknod);