* tests/test-gettext-h.c: Include string.h.
(main): Check return values of calls.
This also pacifies GCC, which otherwise might
warn about a variable being set but not used.
+2025-02-02 Paul Eggert <eggert@cs.ucla.edu>
+
+ test-gettext-h: check call results
+ * tests/test-gettext-h.c: Include string.h.
+ (main): Check return values of calls.
+ This also pacifies GCC, which otherwise might
+ warn about a variable being set but not used.
+
2025-01-31 Paul Eggert <eggert@cs.ucla.edu>
announce-gen: add comments
#include "gettext.h"
+#include <string.h>
+
int
main (void)
{
textdomain ("tzlof");
s = gettext ("some text");
+ if (strcmp (s, "some text") != 0)
+ return 1;
+
s = pgettext ("menu", "some other text");
+ if (strcmp (s, "some other text") != 0)
+ return 1;
return 0;
}