[Spread-users] [PATCH] Fix for Python module warnings processing sp_func.h
Daniel Rall
dlr at finemaltcoding.com
Tue Oct 1 11:49:53 EDT 2002
Building version 1.3 of the Spread Python module, I get the following
warnings from the sp_func.h header file:
$ python2 setup.py -q build_ext
$ In file included from /home/dlrspread/include/i386-redhat-7.3/sp.h:150, from spreadmodule.c:11:
$ /home/dlrspread/include/i386-redhat-7.3/sp_func.h:93: warning: function declaration isn't a prototype
$ /home/dlrspread/include/i386-redhat-7.3/sp_func.h:94: warning: function declaration isn't a prototype
$ /home/dlrspread/include/i386-redhat-7.3/sp_func.h:95: warning: function declaration isn't a prototype
$ warning: no library file corresponding to '/home/dlrspread/platform/i386-redhat-7.3/spread/lib/libtspread.a' found (skipping)
This patch fixes those errors:
Index: sp_func.h
===================================================================
RCS file: /storage/cvsroot/spread/daemon/sp_func.h,v
retrieving revision 1.3
diff -u -u -r1.3 sp_func.h
--- sp_func.h 22 Sep 2002 02:56:52 -0000 1.3
+++ sp_func.h 1 Oct 2002 15:43:22 -0000
@@ -90,9 +90,9 @@
scatter *scat_mess );
/* returns offset in memb. message of gid (group id), num_vs and vs_set */
-int SP_get_gid_offset_memb_mess();
-int SP_get_num_vs_offset_memb_mess();
-int SP_get_vs_set_offset_memb_mess();
+int SP_get_gid_offset_memb_mess(void);
+int SP_get_num_vs_offset_memb_mess(void);
+int SP_get_vs_set_offset_memb_mess(void);
int SP_poll( mailbox mbox );
--
Daniel Rall <dlr at finemaltcoding.com>
More information about the Spread-users
mailing list