Skip to content

Commit 3ea113f

Browse files
OsterlaDPixelBoot
authored andcommitted
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> Change-Id: Ib1d8837c2a9a9a2378f65f90b9c2f239a52818b2
1 parent 8d469a7 commit 3ea113f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/kconfig/lkc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#ifndef KBUILD_NO_NLS
1212
# include <libintl.h>
1313
#else
14+
# include <features.h>
15+
__attribute_format_arg__(1)
1416
static inline const char *gettext(const char *txt) { return txt; }
1517
static inline void textdomain(const char *domainname) {}
1618
static inline void bindtextdomain(const char *name, const char *dir) {}

0 commit comments

Comments
 (0)