diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-27 23:34:10 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-07-14 15:14:37 +0100 |
commit | ab66fc70938025262f9e163c7ecff605e27b4cf6 (patch) | |
tree | 0c73029ad1120ec16037405fc6c7a6a0d0898ecd /scripts | |
parent | 02958a6ee4050f75188df371a4118efb89685c8c (diff) | |
download | busybox-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.h | 6 |
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)) | 14 | static inline const char *gettext(const char *txt) { return txt; } |
15 | # define textdomain(Domainname) ((const char *) (Domainname)) | 15 | static inline void textdomain(const char *domainname) {} |
16 | # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) | 16 | static inline void bindtextdomain(const char *name, const char *dir) {} |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | #ifdef __cplusplus | 19 | #ifdef __cplusplus |