Tony Mechelynck wrote:

> I get the following warnings. AFAICT they don't prevent a functioning 
> gvim from being produced. I suppose they've been there for some time but 
> compiling only the single module (and version.c) made them stand out.
> 
> > gui_gtk_x11.c: In function ‘gui_mch_init_check’:
> > gui_gtk_x11.c:1595: warning: pointer targets in passing argument 2 of 
> > ‘dcgettext’ differ in signedness
> > gui_gtk_x11.c: In function ‘sm_client_die’:
> > gui_gtk_x11.c:2350: warning: pointer targets in passing argument 2 of 
> > ‘vim_strncpy’ differ in signedness

These are because the gnome header files annoyingly define _() to
something else than what we want it to be.  The type casts in the diff
below should fix this.

> > gui_gtk_x11.c: In function ‘gui_mch_init’:
> > gui_gtk_x11.c:3419: warning: not enough variable arguments to fit a sentinel

This is for gnome_program_init().  I suspect this changed over different
Gnome versions.  I don't know how to fix this without causing new
problems.

> > gui_gtk_x11.c: In function ‘gui_mch_get_font’:
> > gui_gtk_x11.c:5247: warning: pointer targets in passing argument 2 of 
> > ‘dcgettext’ differ in signedness

Another type cast.

*** ../vim-7.2a.013/src/gui_gtk_x11.c   Wed Jul  2 21:04:36 2008
--- src/gui_gtk_x11.c   Fri Jul  4 12:46:24 2008
***************
*** 1592,1598 ****
      if (!gtk_init_check(&gui_argc, &gui_argv))
      {
        gui.dying = TRUE;
!       EMSG(_(e_opendisp));
        return FAIL;
      }
  
--- 1593,1599 ----
      if (!gtk_init_check(&gui_argc, &gui_argv))
      {
        gui.dying = TRUE;
!       EMSG(_((char *)e_opendisp));
        return FAIL;
      }
  
***************
*** 2345,2353 ****
      /* Don't write messages to the GUI anymore */
      full_screen = FALSE;
  
!     vim_strncpy(IObuff,
                    _("Vim: Received \"die\" request from session manager\n"),
!           IOSIZE - 1);
      preserve_exit();
  }
  
--- 2346,2354 ----
      /* Don't write messages to the GUI anymore */
      full_screen = FALSE;
  
!     vim_strncpy(IObuff, (char_u *)
                    _("Vim: Received \"die\" request from session manager\n"),
!                   IOSIZE - 1);
      preserve_exit();
  }
  
***************
*** 5244,5250 ****
      if (font == NULL)
      {
        if (report_error)
!           EMSG2(_(e_font), name);
        return NULL;
      }
  
--- 5245,5251 ----
      if (font == NULL)
      {
        if (report_error)
!           EMSG2(_((char *)e_font), name);
        return NULL;
      }
  


-- 
hundred-and-one symptoms of being an internet addict:
155. You forget to eat because you're too busy surfing the net.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui