chiark / gitweb /
compile with warnings; need to fix up many
authorIan Jackson <ian@liberator.(none)>
Tue, 27 Apr 2010 16:40:14 +0000 (17:40 +0100)
committerIan Jackson <ian@liberator.(none)>
Tue, 27 Apr 2010 16:40:14 +0000 (17:40 +0100)
backends/Makefile
backends/innduct.c

index e6365d3437c25b3d3cfc4743d9a9e2c6cc7c5eb8..6849a804f7d76ffabcfd3ca87de3332d95190f2b 100644 (file)
@@ -63,7 +63,7 @@ $(FIXSCRIPT):
        @echo Run configure before running make.  See INSTALL for details.
        @exit 1
 
-innduct.o: CFLAGS += -Wimplicit -Wstrict-prototypes -Wmissing-prototypes
+innduct.o: CFLAGS += -Wall -Wimplicit -Wstrict-prototypes -Wmissing-prototypes
 
 actsync:       actsync.o    $(LIBINN)  ; $(LINK) actsync.o    $(INNLIBS)
 archive:       archive.o    $(BOTH)    ; $(LINK) archive.o    $(STORELIBS)
index 37241d4c9c892f6df484bd5de0dc723cf96c4a40..4311dca21299888966a793a2cb0e9d11201f965b 100644 (file)
@@ -583,7 +583,7 @@ static void report_child_status(const char *what, int status) {
   if (WIFEXITED(status)) {
     int es= WEXITSTATUS(status);
     if (es)
-      warn("%s: child died with error exit status %d",es);
+      warn("%s: child died with error exit status %d", what, es);
   } else if (WIFSIGNALED(status)) {
     int sig= WTERMSIG(status);
     const char *sigstr= strsignal(sig);
@@ -594,7 +594,7 @@ static void report_child_status(const char *what, int status) {
       warn("%s: child died due to unknown fatal signal %d%s",
           what, sig, coredump);
   } else {
-    warn("%s: child died with unknown wait status %d", status);
+    warn("%s: child died with unknown wait status %d", what,status);
   }
 }