s3: Silence some warnings
authorVolker Lendecke <vl@samba.org>
Tue, 30 Aug 2011 15:02:54 +0000 (17:02 +0200)
committerVolker Lendecke <vlendec@samba.org>
Tue, 30 Aug 2011 17:16:14 +0000 (19:16 +0200)
Rusty, please suggest a proper fix for this.

Thanks,

Volker Lendecke

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 30 19:16:14 CEST 2011 on sn-devel-104

source3/lib/ctdbd_conn.c
source3/lib/dbwrap/dbwrap_ctdb.c
source3/lib/messages_ctdbd.c

index 1b4f9ac68a7cf7ee25426104e5b5818ef2e0e7d1..21a417c00dd42a3e2670d7bb4da14857975331a6 100644 (file)
 #include "ctdb_packet.h"
 #include "messages.h"
 
+/*
+ * It is not possible to include ctdb.h and tdb_compat.h (included via
+ * some other include above) without warnings. This fixes those
+ * warnings.
+ */
+
+#ifdef typesafe_cb
+#undef typesafe_cb
+#endif
+
+#ifdef typesafe_cb_preargs
+#undef typesafe_cb_preargs
+#endif
+
+#ifdef typesafe_cb_postargs
+#undef typesafe_cb_postargs
+#endif
+
 /* paths to these include files come from --with-ctdb= in configure */
+
 #include "ctdb.h"
 #include "ctdb_private.h"
 
index ada5cfce9fe8a30f6e9a212ecca783f58bee655e..3233253f7c9292bf6a7baf7de2302da2fde2c654 100644 (file)
 #include "lib/util/tdb_wrap.h"
 #include "util_tdb.h"
 #ifdef CLUSTER_SUPPORT
+
+/*
+ * It is not possible to include ctdb.h and tdb_compat.h (included via
+ * some other include above) without warnings. This fixes those
+ * warnings.
+ */
+
+#ifdef typesafe_cb
+#undef typesafe_cb
+#endif
+
+#ifdef typesafe_cb_preargs
+#undef typesafe_cb_preargs
+#endif
+
+#ifdef typesafe_cb_postargs
+#undef typesafe_cb_postargs
+#endif
+
 #include "ctdb.h"
 #include "ctdb_private.h"
 #include "ctdbd_conn.h"
index 3140f65510d4954e278ae8ade7369b43c4b05a6c..9e092bc699f89dfd736c096eeec6e26e206554ed 100644 (file)
 
 #ifdef CLUSTER_SUPPORT
 
+/*
+ * It is not possible to include ctdb.h and tdb_compat.h (included via
+ * some other include above) without warnings. This fixes those
+ * warnings.
+ */
+
+#ifdef typesafe_cb
+#undef typesafe_cb
+#endif
+
+#ifdef typesafe_cb_preargs
+#undef typesafe_cb_preargs
+#endif
+
+#ifdef typesafe_cb_postargs
+#undef typesafe_cb_postargs
+#endif
+
 #include "ctdb.h"
 #include "ctdb_private.h"
 #include "ctdbd_conn.h"