François -

Can you check if adding (void) before a function gets rid of the warning
for an unused return value?

Try without and with this patch:


*** ../vim-7.2.054/src/diff.c   Fri Jan 18 17:39:32 2008
--- src/diff.c  Fri Nov 28 17:08:28 2008
***************
*** 925,934 ****
      {
  # ifdef TEMPDIRNAMES
        if (vim_tempdir != NULL)
!           mch_chdir((char *)vim_tempdir);
        else
  # endif
!           mch_chdir("/tmp");
        shorten_fnames(TRUE);
      }
  #endif
--- 940,949 ----
      {
  # ifdef TEMPDIRNAMES
        if (vim_tempdir != NULL)
!           (void)mch_chdir((char *)vim_tempdir);
        else
  # endif
!           (void)mch_chdir("/tmp");
        shorten_fnames(TRUE);
      }
  #endif


-- 
FIRST GUARD: Ah!  Now ... we're not allowed to ...
   SIR LAUNCELOT runs him through,  grabs his spear and stabs the other
   guard who collapses in a heap.  Hiccoughs quietly.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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