summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDenis OSTERLAND <denis.osterland@diehl.com>2018-12-12 10:31:27 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-01-02 15:01:16 +0100
commit1f6dbd39446b97f0188bad9d0b376bd91dd83133 (patch)
treed07f0c395cba1208968568230ec6e02139b774fc /scripts
parent12603dac152cf30e01ee1790a827a1a427ce9b86 (diff)
downloadptxdist-1f6dbd39446b97f0188bad9d0b376bd91dd83133.tar.gz
ptxdist-1f6dbd39446b97f0188bad9d0b376bd91dd83133.tar.xz
kconfig: fix warnings on format
Fixes warnings like: conf.c:79:3: warning: format not a string literal and no format arguments [-Wformat-security] printf(_("aborted!\n\n")); ^ Note: not all compilers show this warning. Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/lkc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 91ca126ea..6be5da701 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -11,6 +11,8 @@
#ifndef KBUILD_NO_NLS
# include <libintl.h>
#else
+# include <features.h>
+__attribute_format_arg__(1)
static inline const char *gettext(const char *txt) { return txt; }
static inline void textdomain(const char *domainname) {}
static inline void bindtextdomain(const char *name, const char *dir) {}