aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-27 23:34:10 +0200
committerRon Yorston <rmy@pobox.com>2017-07-14 15:14:37 +0100
commitab66fc70938025262f9e163c7ecff605e27b4cf6 (patch)
tree0c73029ad1120ec16037405fc6c7a6a0d0898ecd /scripts
parent02958a6ee4050f75188df371a4118efb89685c8c (diff)
downloadbusybox-w32-ab66fc70938025262f9e163c7ecff605e27b4cf6.tar.gz
busybox-w32-ab66fc70938025262f9e163c7ecff605e27b4cf6.tar.bz2
busybox-w32-ab66fc70938025262f9e163c7ecff605e27b4cf6.zip
kbuild: avoid warning when building with KBUILD_NO_NLS
The return values of bindtextdomain() and textdomain() are not actually used at all... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/lkc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 527f60c99..b88b89d2d 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -11,9 +11,9 @@
11#ifndef KBUILD_NO_NLS 11#ifndef KBUILD_NO_NLS
12# include <libintl.h> 12# include <libintl.h>
13#else 13#else
14# define gettext(Msgid) ((const char *) (Msgid)) 14static inline const char *gettext(const char *txt) { return txt; }
15# define textdomain(Domainname) ((const char *) (Domainname)) 15static inline void textdomain(const char *domainname) {}
16# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) 16static inline void bindtextdomain(const char *name, const char *dir) {}
17#endif 17#endif
18 18
19#ifdef __cplusplus 19#ifdef __cplusplus