[distcc] Silencing some compiler warnings

Wayne Davison wayned at users.sourceforge.net
Sun Jul 13 15:02:37 GMT 2003


Most of the mon*.c files include io.h prior to distcc.h, which generates
a warning about the new dcc_compress enum being defined inside a
function prototype.  Since all other source files include io.h after
distcc.h, the fix would appear to be to shuffle these two includes.

..wayne..
-------------- next part --------------
--- src/mon-gnome.c	7 Jul 2003 05:23:28 -0000	1.40
+++ src/mon-gnome.c	13 Jul 2003 14:56:15 -0000
@@ -49,8 +49,8 @@
 
 #include "types.h"
 #include "rpc.h"
-#include "io.h"
 #include "distcc.h"
+#include "io.h"
 #include "trace.h"
 #include "exitcode.h"
 #include "mon.h"
--- src/mon-notify.c	16 Jun 2003 03:48:07 -0000	1.1
+++ src/mon-notify.c	13 Jul 2003 14:56:15 -0000
@@ -38,8 +38,8 @@
 
 #include "types.h"
 #include "rpc.h"
-#include "io.h"
 #include "distcc.h"
+#include "io.h"
 #include "trace.h"
 #include "exitcode.h"
 #include "state.h"
--- src/mon.c	16 Jun 2003 03:48:46 -0000	1.24
+++ src/mon.c	13 Jul 2003 14:56:15 -0000
@@ -38,8 +38,8 @@
 
 #include "types.h"
 #include "rpc.h"
-#include "io.h"
 #include "distcc.h"
+#include "io.h"
 #include "trace.h"
 #include "exitcode.h"
 #include "state.h"


More information about the distcc mailing list