From: Peter Verthez Date: Mon, 21 Oct 2002 18:49:39 +0000 (+0000) Subject: Define macro UNUSED as empty if not using gcc. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=1ba5d89350a061b91b74e2d6a8474f7b247ad622;p=gedcom-parse.git Define macro UNUSED as empty if not using gcc. --- diff --git a/gedcom/gedcom_internal.h b/gedcom/gedcom_internal.h index a8c3044..9807ecb 100644 --- a/gedcom/gedcom_internal.h +++ b/gedcom/gedcom_internal.h @@ -49,7 +49,11 @@ #define GEDCOM_INTERNAL 1 +#ifdef __GNUC__ #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif struct tag_struct { char *string; diff --git a/gom/gom_internal.h b/gom/gom_internal.h index d00ca74..86e34ab 100644 --- a/gom/gom_internal.h +++ b/gom/gom_internal.h @@ -36,7 +36,11 @@ #define _(string) gettext(string) #define N_(string) (string) +#ifdef __GNUC__ #define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif typedef enum { T_NULL,