lkml.org 
[lkml]   [2008]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: mconf.c and bindtextdomain() -- warnings while cross-compiling on OS X
Sam Ravnborg wrote:

> I have queued up following patch. It is obviously correct and builds without
> warnings here. Can you give it a try on your box.

...

> +static inline void const char *gettext(const char *txt) { return txt; }

Drop the "void" on this line and this patch works.

While you're at it, you'll also need this change:

--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -773,7 +773,7 @@ static void conf_string(struct menu *menu)

while (1) {
int res;
- char *heading;
+ const char *heading;

On a side note, git-diff gives me this error in mconf.c:

@@ -924,4 +924,4 @@ int main(int ac, char **av)
}

return 0;
-}
+}
\ No newline at end of file
I've never seen it before so I don't know if this is specific to OS X or
maybe it's my editor.


\
 
 \ /
  Last update: 2008-05-04 20:45    [W:0.039 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site