Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: fix MAC OS X warnings in menuconfig

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Timur Tabi <timur@freescale.com>

+5 -4
+3 -3
scripts/kconfig/lkc.h
··· 11 11 #ifndef KBUILD_NO_NLS 12 12 # include <libintl.h> 13 13 #else 14 - # define gettext(Msgid) ((const char *) (Msgid)) 15 - # define textdomain(Domainname) ((const char *) (Domainname)) 16 - # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) 14 + static inline const char *gettext(const char *txt) { return txt; } 15 + static inline void textdomain(const char *domainname) {} 16 + static inline void bindtextdomain(const char *name, const char *dir) {} 17 17 #endif 18 18 19 19 #ifdef __cplusplus
+2 -1
scripts/kconfig/mconf.c
··· 773 773 774 774 while (1) { 775 775 int res; 776 - char *heading; 776 + const char *heading; 777 777 778 778 switch (sym_get_type(menu->sym)) { 779 779 case S_INT: ··· 925 925 926 926 return 0; 927 927 } 928 +