projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1795d2c
)
Workaround 'obsolescent bcopy, bzero called' cppcheck warnings (POSIX)
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 7 Mar 2017 15:52:08 +0000
(18:52 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Tue, 7 Mar 2017 15:53:54 +0000
(18:53 +0300)
* include/private/gc_priv.h (BCOPY, BZERO): Define to memcpy/set if
CPPCHECK (regardless of BCOPY_EXISTS).
include/private/gc_priv.h
patch
|
blob
|
history
diff --git
a/include/private/gc_priv.h
b/include/private/gc_priv.h
index
0201447
..
d92591e
100644
(file)
--- a/
include/private/gc_priv.h
+++ b/
include/private/gc_priv.h
@@
-476,7
+476,7
@@
typedef char * ptr_t; /* A generic pointer to which we can add */
# define BCOPY_EXISTS
# endif
-# if
ndef BCOPY_EXISTS
+# if
!defined(BCOPY_EXISTS) || defined(CPPCHECK)
# include <string.h>
# define BCOPY(x,y,n) memcpy(y, x, (size_t)(n))
# define BZERO(x,n) memset(x, 0, (size_t)(n))