Hi

Attached patch fixes the following compilation
error with the Motif GUI with vim-7.4.1210:

$ gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF     -g -O2 -Wall
-Wshadow -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-DEXITFREE    -o objects/gui_motif.o gui_motif.c
...
gui_motif.c:121:51: error: unknown type name ‘call_data’
 scroll_cb(Widget w UNUSED, XtPointer client_data, call_data)
                                                   ^
gui_motif.c:86:13: warning: ‘scroll_cb’ used but never defined
 static void scroll_cb(Widget w, XtPointer client_data, XtPointer call_data);
             ^

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 72a2915..3d77b82 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -118,7 +118,7 @@ static void gui_motif_scroll_colors(Widget id);
  */
 
     static void
-scroll_cb(Widget w UNUSED, XtPointer client_data, call_data)
+scroll_cb(Widget w UNUSED, XtPointer client_data, XtPointer call_data)
 {
     scrollbar_T *sb;
     long	value;

Raspunde prin e-mail lui