1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Bug#53445: Build with -Wall and fix warnings that it generates

If bzero is not available, resort to memset. Also, remove dead
bzero.c
This commit is contained in:
Davi Arnaut
2010-07-02 18:42:32 -03:00
parent 0eb26fdfa8
commit 0300935ff3
2 changed files with 4 additions and 86 deletions

View File

@@ -58,6 +58,10 @@
# define bfill(A,B,C) memset((A),(C),(B))
#endif
#if !defined(bzero) && !defined(HAVE_BZERO)
# define bzero(A,B) memset((A),0,(B))
#endif
#if defined(__cplusplus)
extern "C" {
#endif
@@ -104,10 +108,6 @@ extern const double log_10[309];
extern void bfill(uchar *dst,size_t len,pchar fill);
#endif
#if !defined(bzero) && !defined(HAVE_BZERO)
extern void bzero(uchar * dst,size_t len);
#endif
#ifndef bmove512
extern void bmove512(uchar *dst,const uchar *src,size_t len);
#endif