This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: libiberty Warnings patrol



Just some warnings fixes for libiberty.  yadda yadda yadda, if it gets
rejected, let me know why, so I don't repeat the same mistakes twice
(I'm sure you're sick of hearing that by now :) ).
Thanks.

2002-02-24  Ryan T. Sammartino <ryants@shaw.ca>

	* regex.c (regerror): fix "unused parameter `preg'" warning.
	* splay-tree.c (splay_tree_xmalloc_allocate,
	splay_tree_xmalloc_deallocate): fix "unused parameter `data'"
	warning.


Index: regex.c
===================================================================
RCS file: /cvsroot/gcc/gcc/libiberty/regex.c,v
retrieving revision 1.10
diff -c -3 -p -b -r1.10 regex.c
*** regex.c	16 Nov 2001 21:54:17 -0000	1.10
--- regex.c	25 Feb 2002 01:18:29 -0000
*************** regerror (errcode, preg, errbuf, errbuf_
*** 8238,8243 ****
--- 8238,8245 ----
    const char *msg;
    size_t msg_size;
  
+   (void)preg;
+ 
    if (errcode < 0
        || errcode >= (int) (sizeof (re_error_msgid_idx)
  			   / sizeof (re_error_msgid_idx[0])))
Index: splay-tree.c
===================================================================
RCS file: /cvsroot/gcc/gcc/libiberty/splay-tree.c,v
retrieving revision 1.19
diff -c -3 -p -b -r1.19 splay-tree.c
*** splay-tree.c	22 Feb 2002 17:01:23 -0000	1.19
--- splay-tree.c	25 Feb 2002 01:18:29 -0000
*************** splay_tree_foreach_helper (sp, node, fn,
*** 232,243 ****
--- 232,245 ----
  static void *
  splay_tree_xmalloc_allocate (int size, void *data)
  {
+   (void)data;
    return xmalloc (size);
  }
  
  static void
  splay_tree_xmalloc_deallocate (void *object, void *data)
  {
+   (void)data;
    free (object);
  }
  


-- 
Ryan T. Sammartino
http://members.shaw.ca/ryants/
Others can stop you temporarily, only you can do it permanently.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]