summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-05-26 20:12:33 +0200
committerrofl0r <retnyg@gmx.net>2013-05-26 20:12:48 +0200
commit0310576481c4191367e74d2cc9056b435c278f06 (patch)
tree88d40e20caa9163476a4efbb0ca9597a96e94b31 /include
parenta7235ba68bc9ea5cffe4c6fa3ac1c51db1e42f52 (diff)
downloadgettext-tiny-0310576481c4191367e74d2cc9056b435c278f06.tar.gz
libintl.h: turn off warning, and force ENABLE_NLS to 0
the latter is a commonly used switch in autoconf'd sw. usually it's defined even when --disable-nls was used. this has the advantage that bindtextdomain and friends are often not even expanded.
Diffstat (limited to 'include')
-rw-r--r--include/libintl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libintl.h b/include/libintl.h
index 2a8e18b..70c7c49 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -38,6 +38,16 @@ char *bindtextdomain(const char *domainname, const char *dirname);
((void)(dom), (void)(codeset), (char*) 0)
#define textdomain(X) ((void)(X), (char*) "messages")
+#undef ENABLE_NLS
+#undef DISABLE_NLS
+#define DISABLE_NLS 1
+
+#if __GNUC__ > 3
+/* most ppl call bindtextdomain() without using its return value
+ thus we get tons of warnings about "statement with no effect" */
+#pragma GCC diagnostic ignored "-Wunused-value"
+#endif
+
#endif
#include <stdio.h>