* gettext-tools/src/format-lisp.c: Include attribute.h.
(intersection): Mark with MAYBE_UNUSED instead of '#ifdef unused'.
* gettext-tools/src/format-scheme.c (intersection): Likewise.
* gettext-tools/src/x-csharp.c (phase5_ungetc): Likewise.
* gettext-tools/src/x-php.c (phase3_ungetc): Likewise.
/* Lisp format strings.
- Copyright (C) 2001-2004, 2006-2007, 2009, 2014, 2019, 2023 Free Software Foundation, Inc.
+ Copyright (C) 2001-2025 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
#include <stdlib.h>
#include "format.h"
+#include "attribute.h"
#include "c-ctype.h"
#include "gcd.h"
#include "xalloc.h"
}
-#ifdef unused
/* Create the intersection of two argument list constraints. NULL stands
for an impossible situation, i.e. a contradiction. */
/* Memory effects: list1 and list2 are freed if non-NULL. The result,
if non-NULL, is freshly allocated. */
-static struct format_arg_list *
+MAYBE_UNUSED static struct format_arg_list *
intersection (struct format_arg_list *list1, struct format_arg_list *list2)
{
if (list1 != NULL)
return NULL;
}
}
-#endif
/* ===================== Union of two format_arg_lists ===================== */
/* Scheme format strings.
- Copyright (C) 2001-2024 Free Software Foundation, Inc.
+ Copyright (C) 2001-2025 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
}
-#ifdef unused
/* Create the intersection of two argument list constraints. NULL stands
for an impossible situation, i.e. a contradiction. */
/* Memory effects: list1 and list2 are freed if non-NULL. The result,
if non-NULL, is freshly allocated. */
-static struct format_arg_list *
+MAYBE_UNUSED static struct format_arg_list *
intersection (struct format_arg_list *list1, struct format_arg_list *list2)
{
if (list1 != NULL)
return NULL;
}
}
-#endif
/* ===================== Union of two format_arg_lists ===================== */
/* xgettext C# backend.
- Copyright (C) 2003-2024 Free Software Foundation, Inc.
+ Copyright (C) 2003-2025 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
}
}
-#ifdef unused
-static void
+MAYBE_UNUSED static void
phase5_ungetc (int c)
{
if (c != UEOF)
phase5_pushback[phase5_pushback_length++] = c;
}
}
-#endif
/* ========================== Reading of tokens. ========================== */
return c;
}
-#ifdef unused
-static void
+MAYBE_UNUSED static void
phase3_ungetc (struct php_extractor *xp, int c)
{
if (c != EOF)
xp->phase3_pushback[xp->phase3_pushback_length++] = c;
}
}
-#endif
/* ========================== Reading of tokens. ========================== */