From ab8edb0cf9a23ee4a1655ad3a26a0cff7d61ac3d Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 19 Aug 2009 09:09:47 +0100 Subject: [PATCH] build: Comment out some unused macros. GCC 4.4.1 warns about some unused macros. Comment these out while they are not used. --- src/generator.ml | 6 +++--- src/guestfs.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/generator.ml b/src/generator.ml index 9393bde..230be80 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4531,10 +4531,10 @@ and generate_client_actions () = #include \"guestfs_protocol.h\" #define error guestfs_error -#define perrorf guestfs_perrorf -#define safe_malloc guestfs_safe_malloc +//#define perrorf guestfs_perrorf +//#define safe_malloc guestfs_safe_malloc #define safe_realloc guestfs_safe_realloc -#define safe_strdup guestfs_safe_strdup +//#define safe_strdup guestfs_safe_strdup #define safe_memdup guestfs_safe_memdup /* Check the return message from a call for validity. */ diff --git a/src/guestfs.c b/src/guestfs.c index 0d54d65..58a0354 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -64,10 +64,10 @@ #ifdef HAVE_GETTEXT #include "gettext.h" #define _(str) dgettext(PACKAGE, (str)) -#define N_(str) dgettext(PACKAGE, (str)) +//#define N_(str) dgettext(PACKAGE, (str)) #else #define _(str) str -#define N_(str) str +//#define N_(str) str #endif #define error guestfs_error @@ -75,7 +75,7 @@ #define safe_malloc guestfs_safe_malloc #define safe_realloc guestfs_safe_realloc #define safe_strdup guestfs_safe_strdup -#define safe_memdup guestfs_safe_memdup +//#define safe_memdup guestfs_safe_memdup static void default_error_cb (guestfs_h *g, void *data, const char *msg); static void stdout_event (struct guestfs_main_loop *ml, guestfs_h *g, void *data, int watch, int fd, int events); -- 1.8.3.1