Skip to content

Commit

Permalink
Suppress a warning with -fstack-protector
Browse files Browse the repository at this point in the history
Suggested by OBATA Akio. Thanks!!!
  • Loading branch information
kou committed Jul 2, 2018
1 parent f604294 commit 4ea1c5b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/grn_msgpack.h
Expand Up @@ -21,9 +21,16 @@
#include "grn.h"

#ifdef GRN_WITH_MESSAGE_PACK
# define memcpy(dest, src, n) grn_memcpy(dest, src, n)
# ifdef memcpy
# define GRN_WITH_CUSTOM_MEMCPY
# endif /* memcpy */
# ifndef GRN_WITH_CUSTOM_MEMCPY
# define memcpy(dest, src, n) grn_memcpy(dest, src, n)
# endif /* GRN_WITH_CUSTOM_MEMCPY */
# include <msgpack.h>
# undef memcpy
# ifndef GRN_WITH_CUSTOM_MEMCPY
# undef memcpy
# endif /* GRN_WITH_CUSTOM_MEMCPY */

# if MSGPACK_VERSION_MAJOR < 1
typedef unsigned int msgpack_size_t;
Expand Down

0 comments on commit 4ea1c5b

Please sign in to comment.