[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/test certiCheckHostAndIP.c libgraphc/grap...
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi/test certiCheckHostAndIP.c libgraphc/grap... |
Date: |
Wed, 07 May 2014 12:10:57 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 14/05/07 12:10:57
Modified files:
test : certiCheckHostAndIP.c
test/libgraphc : graph_c.cc
Log message:
Fix compilation warning on MasOS X/Clang 5.1
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/test/certiCheckHostAndIP.c?cvsroot=certi&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/certi/test/libgraphc/graph_c.cc?cvsroot=certi&r1=3.8&r2=3.9
Patches:
Index: certiCheckHostAndIP.c
===================================================================
RCS file: /sources/certi/certi/test/certiCheckHostAndIP.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- certiCheckHostAndIP.c 19 Jul 2011 07:57:24 -0000 1.1
+++ certiCheckHostAndIP.c 7 May 2014 12:10:56 -0000 1.2
@@ -36,6 +36,13 @@
#include <stdlib.h>
#include <rpc/rpc.h>
+/* Add missing declaration on MacOS rpclib
+ * which generate a spurious warning
+ */
+#ifdef __APPLE__
+void get_myaddress(struct sockaddr_in *addr);
+#endif
+
int main(int argc, char* argv[]) {
struct hostent* myhost;
struct hostent* myhost_byaddr;
Index: libgraphc/graph_c.cc
===================================================================
RCS file: /sources/certi/certi/test/libgraphc/graph_c.cc,v
retrieving revision 3.8
retrieving revision 3.9
diff -u -b -r3.8 -r3.9
--- libgraphc/graph_c.cc 24 Sep 2013 14:27:59 -0000 3.8
+++ libgraphc/graph_c.cc 7 May 2014 12:10:57 -0000 3.9
@@ -2206,7 +2206,9 @@
{
XSetFunction(canal_aff,contexte_graph,GXcopy);
}
+#else
+void unUsedSymbol() {}
#endif // X_DISPLAY_MISSING
-// $Id: graph_c.cc,v 3.8 2013/09/24 14:27:59 erk Exp $
+// $Id: graph_c.cc,v 3.9 2014/05/07 12:10:57 erk Exp $
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/test certiCheckHostAndIP.c libgraphc/grap...,
CERTI CVS commits <=