* gettext-runtime/src/envsubst.c: Include attribute.h.
(string_list_member, string_list_destroy): Mark as MAYBE_UNUSED.
* gettext-tools/src/format-scheme.c: Include attribute.h.
(II): Mark as MAYBE_UNUSED.
* gettext-tools/src/msgl-fsearch.c: Include attribute.h.
(add_index): Mark as MAYBE_UNUSED.
* gettext-tools/src/po-lex.c: Include attribute.h.
(mb_isnul, mb_cmp, mb_equal, mb_isascii, mb_putc, mb_setascii): Mark as
MAYBE_UNUSED.
* gettext-tools/src/write-qt.c: Include attribute.h.
(write_u16): Mark as MAYBE_UNUSED.
* gettext-tools/src/x-awk.c (free_token): Mark as MAYBE_UNUSED.
* gettext-tools/src/x-python.c (phase0_ungetc): Mark as MAYBE_UNUSED.
#include <unistd.h>
#include <locale.h>
+#include "attribute.h"
#include "noreturn.h"
#include "closeout.h"
#include "error.h"
}
/* Test whether a string list contains a given string. */
-static inline int
+MAYBE_UNUSED static inline int
string_list_member (const string_list_ty *slp, const char *s)
{
size_t j;
}
/* Destroy a list of strings. */
-static inline void
+MAYBE_UNUSED static inline void
string_list_destroy (string_list_ty *slp)
{
size_t j;
#include <stdbool.h>
#include <stdlib.h>
+#include "attribute.h"
#include "format.h"
#include "c-ctype.h"
#include "gcd.h"
/* Possible signatures of format directives. */
static const enum format_arg_type I [1] = { FAT_INTEGER_NULL };
-_GL_ATTRIBUTE_MAYBE_UNUSED
+MAYBE_UNUSED
static const enum format_arg_type II [2] = {
FAT_INTEGER_NULL, FAT_INTEGER_NULL
};
#include <math.h>
#include <stdlib.h>
+#include "attribute.h"
#include "xalloc.h"
#include "po-charset.h"
/* Add a given index to an index list.
Return the new index list, if it had to be reallocated, or NULL if it
didn't change. */
-static inline index_list_ty
+MAYBE_UNUSED static inline index_list_ty
add_index (index_list_ty list, index_ty idx)
{
index_list_ty result;
# include <iconv.h>
#endif
+#include "attribute.h"
#include "c-ctype.h"
#include "uniwidth.h"
#include "gettext.h"
return (mbc->bytes == 1 && mbc->buf[0] == sc);
}
-static inline bool
+MAYBE_UNUSED static inline bool
mb_isnul (const mbchar_t mbc)
{
#if HAVE_ICONV
return (mbc->bytes == 1 && mbc->buf[0] == 0);
}
-static inline int
+MAYBE_UNUSED static inline int
mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2)
{
#if HAVE_ICONV
: (memcmp (mbc1->buf, mbc2->buf, mbc2->bytes) >= 0 ? 1 : -1));
}
-static inline bool
+MAYBE_UNUSED static inline bool
mb_equal (const mbchar_t mbc1, const mbchar_t mbc2)
{
#if HAVE_ICONV
/* <ctype.h>, <wctype.h> classification. */
-static inline bool
+MAYBE_UNUSED static inline bool
mb_isascii (const mbchar_t mbc)
{
#if HAVE_ICONV
}
/* Output. */
-static inline void
+MAYBE_UNUSED static inline void
mb_putc (const mbchar_t mbc, FILE *stream)
{
fwrite (mbc->buf, 1, mbc->bytes, stream);
}
/* Assignment. */
-static inline void
+MAYBE_UNUSED static inline void
mb_setascii (mbchar_t mbc, char sc)
{
mbc->bytes = 1;
/* Writing Qt .qm files.
- Copyright (C) 2003, 2005-2007, 2009, 2016, 2020 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-2007, 2009, 2016, 2020, 2023 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
#include <stdlib.h>
#include <string.h>
+#include "attribute.h"
#include "error.h"
#include "xerror.h"
#include "message.h"
}
/* Write a u16 (two bytes) to the output stream. */
-static inline void
+MAYBE_UNUSED static inline void
write_u16 (FILE *output_file, unsigned short value)
{
unsigned char data[2];
/* Free the memory pointed to by a 'struct token_ty'. */
-static inline void
+MAYBE_UNUSED static inline void
free_token (token_ty *tp)
{
switch (tp->type)
}
/* Supports only one pushback character, and not '\n'. */
-static inline void
+MAYBE_UNUSED static inline void
phase0_ungetc (int c)
{
if (c != EOF)