]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* regex.c (bzero) [!_LIBC]: Cast the call to memcpy to (void).
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 13 Mar 2014 22:04:07 +0000 (23:04 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 13 Mar 2014 22:04:07 +0000 (23:04 +0100)
From-SVN: r208558

libiberty/regex.c

index cc9acdc2380c09fa02cfc271a87df568190d2243..16338cb206b455d87d275e778d4590500c213216 100644 (file)
@@ -151,7 +151,7 @@ char *realloc ();
 #    include <string.h>
 #    ifndef bzero
 #     ifndef _LIBC
-#      define bzero(s, n)      memset (s, '\0', n)
+#      define bzero(s, n)      ((void) memset (s, '\0', n))
 #     else
 #      define bzero(s, n)      __bzero (s, n)
 #     endif