Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.173
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.173
Karsten Hopp 81c285
Problem:    Without lint there is no check for unused function arguments.
Karsten Hopp 81c285
Solution:   Use gcc -Wunused-parameter instead of lint.  For a few files add
Karsten Hopp 81c285
	    attributes to arguments that are known not to be used.
Karsten Hopp 81c285
Files:	    src/auto/configure, src/buffer.c, src/charset.c, src/diff.c,
Karsten Hopp 81c285
	    src/configure.in, src/config.h.in, src/edit.c, src/ex_cmds.c,
Karsten Hopp 81c285
	    src/ex_cmds2.c, src/version.c, src/vim.h
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.172/src/auto/configure	2009-05-13 14:48:55.000000000 +0200
Karsten Hopp 81c285
--- src/auto/configure	2009-05-14 22:08:12.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 10362,10367 ****
Karsten Hopp 81c285
--- 10372,10427 ----
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Karsten Hopp 81c285
  
Karsten Hopp 81c285
+ { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
Karsten Hopp 81c285
+ $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
Karsten Hopp 81c285
+ cat >conftest.$ac_ext <<_ACEOF
Karsten Hopp 81c285
+ /* confdefs.h.  */
Karsten Hopp 81c285
+ _ACEOF
Karsten Hopp 81c285
+ cat confdefs.h >>conftest.$ac_ext
Karsten Hopp 81c285
+ cat >>conftest.$ac_ext <<_ACEOF
Karsten Hopp 81c285
+ /* end confdefs.h.  */
Karsten Hopp 81c285
+ #include <stdio.h>
Karsten Hopp 81c285
+ int
Karsten Hopp 81c285
+ main ()
Karsten Hopp 81c285
+ {
Karsten Hopp 81c285
+ int x __attribute__((unused));
Karsten Hopp 81c285
+   ;
Karsten Hopp 81c285
+   return 0;
Karsten Hopp 81c285
+ }
Karsten Hopp 81c285
+ _ACEOF
Karsten Hopp 81c285
+ rm -f conftest.$ac_objext
Karsten Hopp 81c285
+ if { (ac_try="$ac_compile"
Karsten Hopp 81c285
+ case "(($ac_try" in
Karsten Hopp 81c285
+   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
Karsten Hopp 81c285
+   *) ac_try_echo=$ac_try;;
Karsten Hopp 81c285
+ esac
Karsten Hopp 81c285
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
Karsten Hopp 81c285
+ $as_echo "$ac_try_echo") >&5
Karsten Hopp 81c285
+   (eval "$ac_compile") 2>conftest.er1
Karsten Hopp 81c285
+   ac_status=$?
Karsten Hopp 81c285
+   grep -v '^ *+' conftest.er1 >conftest.err
Karsten Hopp 81c285
+   rm -f conftest.er1
Karsten Hopp 81c285
+   cat conftest.err >&5
Karsten Hopp 81c285
+   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Karsten Hopp 81c285
+   (exit $ac_status); } && {
Karsten Hopp 81c285
+ 	 test -z "$ac_c_werror_flag" ||
Karsten Hopp 81c285
+ 	 test ! -s conftest.err
Karsten Hopp 81c285
+        } && test -s conftest.$ac_objext; then
Karsten Hopp 81c285
+   { $as_echo "$as_me:$LINENO: result: yes" >&5
Karsten Hopp 81c285
+ $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
Karsten Hopp 81c285
+ #define HAVE_ATTRIBUTE_UNUSED 1
Karsten Hopp 81c285
+ _ACEOF
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
+ else
Karsten Hopp 81c285
+   $as_echo "$as_me: failed program was:" >&5
Karsten Hopp 81c285
+ sed 's/^/| /' conftest.$ac_ext >&5
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
+ 	{ $as_echo "$as_me:$LINENO: result: no" >&5
Karsten Hopp 81c285
+ $as_echo "no" >&6; }
Karsten Hopp 81c285
+ fi
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
  if test "${ac_cv_header_elf_h+set}" = set; then
Karsten Hopp 81c285
    { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
Karsten Hopp 81c285
  $as_echo_n "checking for elf.h... " >&6; }
Karsten Hopp 81c285
*** ../vim-7.2.172/src/buffer.c	2009-05-13 20:47:07.000000000 +0200
Karsten Hopp 81c285
--- src/buffer.c	2009-05-14 21:34:06.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 512,523 ****
Karsten Hopp 81c285
   * buf_freeall() - free all things allocated for a buffer that are related to
Karsten Hopp 81c285
   * the file.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  buf_freeall(buf, del_buf, wipe_buf)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		del_buf;	/* buffer is going to be deleted */
Karsten Hopp 81c285
!     int		wipe_buf;	/* buffer is going to be wiped out */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_AUTOCMD
Karsten Hopp 81c285
      int		is_curbuf = (buf == curbuf);
Karsten Hopp 81c285
--- 512,522 ----
Karsten Hopp 81c285
   * buf_freeall() - free all things allocated for a buffer that are related to
Karsten Hopp 81c285
   * the file.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  buf_freeall(buf, del_buf, wipe_buf)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		del_buf UNUSED;	    /* buffer is going to be deleted */
Karsten Hopp 81c285
!     int		wipe_buf UNUSED;    /* buffer is going to be wiped out */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_AUTOCMD
Karsten Hopp 81c285
      int		is_curbuf = (buf == curbuf);
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2437,2447 ****
Karsten Hopp 81c285
   * another tab page.
Karsten Hopp 81c285
   * Returns NULL when there isn't any info.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      static wininfo_T *
Karsten Hopp 81c285
  find_wininfo(buf, skip_diff_buffer)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		skip_diff_buffer;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      wininfo_T	*wip;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
--- 2436,2445 ----
Karsten Hopp 81c285
   * another tab page.
Karsten Hopp 81c285
   * Returns NULL when there isn't any info.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      static wininfo_T *
Karsten Hopp 81c285
  find_wininfo(buf, skip_diff_buffer)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		skip_diff_buffer UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      wininfo_T	*wip;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 4278,4287 ****
Karsten Hopp 81c285
   * Make "ffname" a full file name, set "sfname" to "ffname" if not NULL.
Karsten Hopp 81c285
   * "ffname" becomes a pointer to allocated memory (or NULL).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  fname_expand(buf, ffname, sfname)
Karsten Hopp 81c285
!     buf_T	*buf;
Karsten Hopp 81c285
      char_u	**ffname;
Karsten Hopp 81c285
      char_u	**sfname;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
--- 4276,4284 ----
Karsten Hopp 81c285
   * Make "ffname" a full file name, set "sfname" to "ffname" if not NULL.
Karsten Hopp 81c285
   * "ffname" becomes a pointer to allocated memory (or NULL).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  fname_expand(buf, ffname, sfname)
Karsten Hopp 81c285
!     buf_T	*buf UNUSED;
Karsten Hopp 81c285
      char_u	**ffname;
Karsten Hopp 81c285
      char_u	**sfname;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 5577,5587 ****
Karsten Hopp 81c285
   * this buffer.  Call this to wipe out a temp buffer that does not contain any
Karsten Hopp 81c285
   * marks.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  wipe_buffer(buf, aucmd)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		aucmd;	    /* When TRUE trigger autocommands. */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (buf->b_fnum == top_file_num - 1)
Karsten Hopp 81c285
  	--top_file_num;
Karsten Hopp 81c285
--- 5574,5583 ----
Karsten Hopp 81c285
   * this buffer.  Call this to wipe out a temp buffer that does not contain any
Karsten Hopp 81c285
   * marks.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  wipe_buffer(buf, aucmd)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
!     int		aucmd UNUSED;	    /* When TRUE trigger autocommands. */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (buf->b_fnum == top_file_num - 1)
Karsten Hopp 81c285
  	--top_file_num;
Karsten Hopp 81c285
*** ../vim-7.2.172/src/charset.c	2009-05-13 14:10:46.000000000 +0200
Karsten Hopp 81c285
--- src/charset.c	2009-05-14 21:34:30.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1026,1038 ****
Karsten Hopp 81c285
   * string at start of line.  Warning: *headp is only set if it's a non-zero
Karsten Hopp 81c285
   * value, init to 0 before calling.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      int
Karsten Hopp 81c285
  win_lbr_chartabsize(wp, s, col, headp)
Karsten Hopp 81c285
      win_T	*wp;
Karsten Hopp 81c285
      char_u	*s;
Karsten Hopp 81c285
      colnr_T	col;
Karsten Hopp 81c285
!     int		*headp;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_LINEBREAK
Karsten Hopp 81c285
      int		c;
Karsten Hopp 81c285
--- 1026,1037 ----
Karsten Hopp 81c285
   * string at start of line.  Warning: *headp is only set if it's a non-zero
Karsten Hopp 81c285
   * value, init to 0 before calling.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      int
Karsten Hopp 81c285
  win_lbr_chartabsize(wp, s, col, headp)
Karsten Hopp 81c285
      win_T	*wp;
Karsten Hopp 81c285
      char_u	*s;
Karsten Hopp 81c285
      colnr_T	col;
Karsten Hopp 81c285
!     int		*headp UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_LINEBREAK
Karsten Hopp 81c285
      int		c;
Karsten Hopp 81c285
*** ../vim-7.2.172/src/diff.c	2009-05-13 18:54:14.000000000 +0200
Karsten Hopp 81c285
--- src/diff.c	2009-05-14 21:24:59.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 652,661 ****
Karsten Hopp 81c285
   * The buffers are written to a file, also for unmodified buffers (the file
Karsten Hopp 81c285
   * could have been produced by autocommands, e.g. the netrw plugin).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_diffupdate(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;	    /* can be NULL, it's not used */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
      int		idx_orig;
Karsten Hopp 81c285
--- 652,660 ----
Karsten Hopp 81c285
   * The buffers are written to a file, also for unmodified buffers (the file
Karsten Hopp 81c285
   * could have been produced by autocommands, e.g. the netrw plugin).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_diffupdate(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;	    /* can be NULL */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
      int		idx_orig;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1094,1103 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * Set options to show difs for the current window.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_diffthis(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      /* Set 'diff', 'scrollbind' on and 'wrap' off. */
Karsten Hopp 81c285
      diff_win_options(curwin, TRUE);
Karsten Hopp 81c285
--- 1093,1101 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * Set options to show difs for the current window.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_diffthis(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      /* Set 'diff', 'scrollbind' on and 'wrap' off. */
Karsten Hopp 81c285
      diff_win_options(curwin, TRUE);
Karsten Hopp 81c285
*** ../vim-7.2.172/src/configure.in	2009-05-13 14:48:55.000000000 +0200
Karsten Hopp 81c285
--- src/configure.in	2009-05-14 22:08:06.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2067,2072 ****
Karsten Hopp 81c285
--- 2067,2077 ----
Karsten Hopp 81c285
  	AC_MSG_RESULT(yes); AC_DEFINE(HAVE_DATE_TIME),
Karsten Hopp 81c285
  	AC_MSG_RESULT(no))
Karsten Hopp 81c285
  
Karsten Hopp 81c285
+ AC_MSG_CHECKING(whether __attribute__((unused)) is allowed)
Karsten Hopp 81c285
+ AC_TRY_COMPILE([#include <stdio.h>], [int x __attribute__((unused));],
Karsten Hopp 81c285
+ 	AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ATTRIBUTE_UNUSED),
Karsten Hopp 81c285
+ 	AC_MSG_RESULT(no))
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
  dnl Checks for header files.
Karsten Hopp 81c285
  AC_CHECK_HEADER(elf.h, HAS_ELF=1)
Karsten Hopp 81c285
  dnl AC_CHECK_HEADER(dwarf.h, SVR4=1)
Karsten Hopp 81c285
*** ../vim-7.2.172/src/config.h.in	2009-03-02 02:44:54.000000000 +0100
Karsten Hopp 81c285
--- src/config.h.in	2009-05-14 21:15:02.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 30,35 ****
Karsten Hopp 81c285
--- 30,38 ----
Karsten Hopp 81c285
  /* Define when __DATE__ " " __TIME__ can be used */
Karsten Hopp 81c285
  #undef HAVE_DATE_TIME
Karsten Hopp 81c285
  
Karsten Hopp 81c285
+ /* Define when __attribute__((unused)) can be used */
Karsten Hopp 81c285
+ #undef HAVE_ATTRIBUTE_UNUSED
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
  /* defined always when using configure */
Karsten Hopp 81c285
  #undef UNIX
Karsten Hopp 81c285
  
Karsten Hopp 81c285
*** ../vim-7.2.172/src/edit.c	2009-05-13 18:54:14.000000000 +0200
Karsten Hopp 81c285
--- src/edit.c	2009-05-14 21:35:08.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1447,1456 ****
Karsten Hopp 81c285
   * Only redraw when there are no characters available.  This speeds up
Karsten Hopp 81c285
   * inserting sequences of characters (e.g., for CTRL-R).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      static void
Karsten Hopp 81c285
  ins_redraw(ready)
Karsten Hopp 81c285
!     int		ready;	    /* not busy with something */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (!char_avail())
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
--- 1447,1455 ----
Karsten Hopp 81c285
   * Only redraw when there are no characters available.  This speeds up
Karsten Hopp 81c285
   * inserting sequences of characters (e.g., for CTRL-R).
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      static void
Karsten Hopp 81c285
  ins_redraw(ready)
Karsten Hopp 81c285
!     int		ready UNUSED;	    /* not busy with something */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (!char_avail())
Karsten Hopp 81c285
      {
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1962,1971 ****
Karsten Hopp 81c285
   * Only matters when there are composing characters.
Karsten Hopp 81c285
   * Return TRUE when something was deleted.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
     static int
Karsten Hopp 81c285
  del_char_after_col(limit_col)
Karsten Hopp 81c285
!     int limit_col;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_MBYTE
Karsten Hopp 81c285
      if (enc_utf8 && limit_col >= 0)
Karsten Hopp 81c285
--- 1961,1969 ----
Karsten Hopp 81c285
   * Only matters when there are composing characters.
Karsten Hopp 81c285
   * Return TRUE when something was deleted.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
     static int
Karsten Hopp 81c285
  del_char_after_col(limit_col)
Karsten Hopp 81c285
!     int limit_col UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_MBYTE
Karsten Hopp 81c285
      if (enc_utf8 && limit_col >= 0)
Karsten Hopp 81c285
*** ../vim-7.2.172/src/ex_cmds.c	2009-05-14 21:51:06.000000000 +0200
Karsten Hopp 81c285
--- src/ex_cmds.c	2009-05-14 21:11:01.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 43,52 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":ascii" and "ga".
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  do_ascii(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      int		c;
Karsten Hopp 81c285
      int		cval;
Karsten Hopp 81c285
--- 43,51 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":ascii" and "ga".
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  do_ascii(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      int		c;
Karsten Hopp 81c285
      int		cval;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2373,2382 ****
Karsten Hopp 81c285
   *   ^?		^H
Karsten Hopp 81c285
   * not ^?	^?
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  do_fixdel(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      char_u  *p;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
--- 2372,2380 ----
Karsten Hopp 81c285
   *   ^?		^H
Karsten Hopp 81c285
   * not ^?	^?
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  do_fixdel(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      char_u  *p;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 6127,6136 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":exusage"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_exusage(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      do_cmdline_cmd((char_u *)"help ex-cmd-index");
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
--- 6125,6133 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":exusage"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_exusage(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      do_cmdline_cmd((char_u *)"help ex-cmd-index");
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 6138,6147 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":viusage"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_viusage(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      do_cmdline_cmd((char_u *)"help normal-index");
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
--- 6135,6143 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":viusage"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_viusage(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      do_cmdline_cmd((char_u *)"help normal-index");
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 7154,7163 ****
Karsten Hopp 81c285
   * Function given to ExpandGeneric() to obtain the sign command
Karsten Hopp 81c285
   * expansion.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  get_sign_name(xp, idx)
Karsten Hopp 81c285
!     expand_T	*xp;
Karsten Hopp 81c285
      int		idx;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      sign_T	*sp;
Karsten Hopp 81c285
--- 7150,7158 ----
Karsten Hopp 81c285
   * Function given to ExpandGeneric() to obtain the sign command
Karsten Hopp 81c285
   * expansion.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  get_sign_name(xp, idx)
Karsten Hopp 81c285
!     expand_T	*xp UNUSED;
Karsten Hopp 81c285
      int		idx;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      sign_T	*sp;
Karsten Hopp 81c285
*** ../vim-7.2.172/src/ex_cmds2.c	2009-05-13 18:54:14.000000000 +0200
Karsten Hopp 81c285
--- src/ex_cmds2.c	2009-05-14 21:35:40.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 680,689 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":breaklist".
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_breaklist(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      struct debuggy *bp;
Karsten Hopp 81c285
      int		i;
Karsten Hopp 81c285
--- 680,688 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":breaklist".
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_breaklist(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      struct debuggy *bp;
Karsten Hopp 81c285
      int		i;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1342,1355 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * return TRUE if buffer was changed and cannot be abandoned.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      int
Karsten Hopp 81c285
  check_changed(buf, checkaw, mult_win, forceit, allbuf)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
      int		checkaw;	/* do autowrite if buffer was changed */
Karsten Hopp 81c285
      int		mult_win;	/* check also when several wins for the buf */
Karsten Hopp 81c285
      int		forceit;
Karsten Hopp 81c285
!     int		allbuf;		/* may write all buffers */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (       !forceit
Karsten Hopp 81c285
  	    && bufIsChanged(buf)
Karsten Hopp 81c285
--- 1341,1353 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * return TRUE if buffer was changed and cannot be abandoned.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      int
Karsten Hopp 81c285
  check_changed(buf, checkaw, mult_win, forceit, allbuf)
Karsten Hopp 81c285
      buf_T	*buf;
Karsten Hopp 81c285
      int		checkaw;	/* do autowrite if buffer was changed */
Karsten Hopp 81c285
      int		mult_win;	/* check also when several wins for the buf */
Karsten Hopp 81c285
      int		forceit;
Karsten Hopp 81c285
!     int		allbuf UNUSED;	/* may write all buffers */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (       !forceit
Karsten Hopp 81c285
  	    && bufIsChanged(buf)
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1759,1770 ****
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * Return FAIL for failure, OK otherwise.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      static int
Karsten Hopp 81c285
  do_arglist(str, what, after)
Karsten Hopp 81c285
      char_u	*str;
Karsten Hopp 81c285
!     int		what;
Karsten Hopp 81c285
!     int		after;		/* 0 means before first one */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      garray_T	new_ga;
Karsten Hopp 81c285
      int		exp_count;
Karsten Hopp 81c285
--- 1757,1767 ----
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * Return FAIL for failure, OK otherwise.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      static int
Karsten Hopp 81c285
  do_arglist(str, what, after)
Karsten Hopp 81c285
      char_u	*str;
Karsten Hopp 81c285
!     int		what UNUSED;
Karsten Hopp 81c285
!     int		after UNUSED;		/* 0 means before first one */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      garray_T	new_ga;
Karsten Hopp 81c285
      int		exp_count;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2549,2559 ****
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  static void source_callback __ARGS((char_u *fname, void *cookie));
Karsten Hopp 81c285
  
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      static void
Karsten Hopp 81c285
  source_callback(fname, cookie)
Karsten Hopp 81c285
      char_u	*fname;
Karsten Hopp 81c285
!     void	*cookie;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      (void)do_source(fname, FALSE, DOSO_NONE);
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
--- 2546,2555 ----
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  static void source_callback __ARGS((char_u *fname, void *cookie));
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      static void
Karsten Hopp 81c285
  source_callback(fname, cookie)
Karsten Hopp 81c285
      char_u	*fname;
Karsten Hopp 81c285
!     void	*cookie UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      (void)do_source(fname, FALSE, DOSO_NONE);
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2680,2689 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":options"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_options(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
--- 2676,2684 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":options"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_options(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
Karsten Hopp 81c285
  }
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 3190,3199 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":scriptnames"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_scriptnames(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      int i;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
--- 3185,3193 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":scriptnames"
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_scriptnames(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      int i;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 3317,3328 ****
Karsten Hopp 81c285
   * Return a pointer to the line in allocated memory.
Karsten Hopp 81c285
   * Return NULL for end-of-file or some error.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /* ARGSUSED */
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  getsourceline(c, cookie, indent)
Karsten Hopp 81c285
!     int		c;		/* not used */
Karsten Hopp 81c285
      void	*cookie;
Karsten Hopp 81c285
!     int		indent;		/* not used */
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      struct source_cookie *sp = (struct source_cookie *)cookie;
Karsten Hopp 81c285
      char_u		*line;
Karsten Hopp 81c285
--- 3311,3321 ----
Karsten Hopp 81c285
   * Return a pointer to the line in allocated memory.
Karsten Hopp 81c285
   * Return NULL for end-of-file or some error.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  getsourceline(c, cookie, indent)
Karsten Hopp 81c285
!     int		c UNUSED;
Karsten Hopp 81c285
      void	*cookie;
Karsten Hopp 81c285
!     int		indent UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      struct source_cookie *sp = (struct source_cookie *)cookie;
Karsten Hopp 81c285
      char_u		*line;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 3649,3658 ****
Karsten Hopp 81c285
   * ":scriptencoding": Set encoding conversion for a sourced script.
Karsten Hopp 81c285
   * Without the multi-byte feature it's simply ignored.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_scriptencoding(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_MBYTE
Karsten Hopp 81c285
      struct source_cookie	*sp;
Karsten Hopp 81c285
--- 3642,3650 ----
Karsten Hopp 81c285
   * ":scriptencoding": Set encoding conversion for a sourced script.
Karsten Hopp 81c285
   * Without the multi-byte feature it's simply ignored.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_scriptencoding(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
  #ifdef FEAT_MBYTE
Karsten Hopp 81c285
      struct source_cookie	*sp;
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 4101,4110 ****
Karsten Hopp 81c285
   * Function given to ExpandGeneric() to obtain the possible arguments of the
Karsten Hopp 81c285
   * ":language" command.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  get_lang_arg(xp, idx)
Karsten Hopp 81c285
!     expand_T	*xp;
Karsten Hopp 81c285
      int		idx;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (idx == 0)
Karsten Hopp 81c285
--- 4093,4101 ----
Karsten Hopp 81c285
   * Function given to ExpandGeneric() to obtain the possible arguments of the
Karsten Hopp 81c285
   * ":language" command.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      char_u *
Karsten Hopp 81c285
  get_lang_arg(xp, idx)
Karsten Hopp 81c285
!     expand_T	*xp UNUSED;
Karsten Hopp 81c285
      int		idx;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      if (idx == 0)
Karsten Hopp 81c285
*** ../vim-7.2.172/src/version.c	2009-05-14 22:00:37.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-05-14 22:14:51.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1623,1632 ****
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":intro": clear screen, display intro screen and wait for return.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
- /*ARGSUSED*/
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_intro(eap)
Karsten Hopp 81c285
!     exarg_T	*eap;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      screenclear();
Karsten Hopp 81c285
      intro_message(TRUE);
Karsten Hopp 81c285
--- 1625,1633 ----
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
   * ":intro": clear screen, display intro screen and wait for return.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
      void
Karsten Hopp 81c285
  ex_intro(eap)
Karsten Hopp 81c285
!     exarg_T	*eap UNUSED;
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
      screenclear();
Karsten Hopp 81c285
      intro_message(TRUE);
Karsten Hopp 81c285
*** ../vim-7.2.172/src/vim.h	2009-05-13 18:54:14.000000000 +0200
Karsten Hopp 81c285
--- src/vim.h	2009-05-14 21:17:51.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 262,267 ****
Karsten Hopp 81c285
--- 262,275 ----
Karsten Hopp 81c285
  # define __PARMS(x) __ARGS(x)
Karsten Hopp 81c285
  #endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
+ /* Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter
Karsten Hopp 81c285
+  * can be used to check for mistakes. */
Karsten Hopp 81c285
+ #ifdef HAVE_ATTRIBUTE_UNUSED
Karsten Hopp 81c285
+ # define UNUSED __attribute__((unused))
Karsten Hopp 81c285
+ #else
Karsten Hopp 81c285
+ # define UNUSED
Karsten Hopp 81c285
+ #endif
Karsten Hopp 81c285
+ 
Karsten Hopp 81c285
  /* if we're compiling in C++ (currently only KVim), the system
Karsten Hopp 81c285
   * headers must have the correct prototypes or nothing will build.
Karsten Hopp 81c285
   * conversely, our prototypes might clash due to throw() specifiers and
Karsten Hopp 81c285
*** ../vim-7.2.172/src/version.c	2009-05-14 22:00:37.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-05-14 22:14:51.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     173,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
SIGIRO -- irony detected (iron core dumped)
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///