提交 0a56761f 编写于 作者: D Dr. Stephen Henson

Avoid warning about empty structures and always define CHECKED_PTR_OF

上级 220903f9
...@@ -198,7 +198,7 @@ void lh_node_usage_stats_bio(const _LHASH *lh, BIO *out); ...@@ -198,7 +198,7 @@ void lh_node_usage_stats_bio(const _LHASH *lh, BIO *out);
#define LHASH_OF(type) struct lhash_st_##type #define LHASH_OF(type) struct lhash_st_##type
#define DECLARE_LHASH_OF(type) LHASH_OF(type) { } #define DECLARE_LHASH_OF(type) LHASH_OF(type) { int dummy; }
#define CHECKED_LHASH_OF(type,lh) \ #define CHECKED_LHASH_OF(type,lh) \
((_LHASH *)CHECKED_PTR_OF(LHASH_OF(type),lh)) ((_LHASH *)CHECKED_PTR_OF(LHASH_OF(type),lh))
......
...@@ -57,13 +57,13 @@ ...@@ -57,13 +57,13 @@
#include <openssl/stack.h> #include <openssl/stack.h>
#ifdef DEBUG_SAFESTACK
#ifndef CHECKED_PTR_OF #ifndef CHECKED_PTR_OF
#define CHECKED_PTR_OF(type, p) \ #define CHECKED_PTR_OF(type, p) \
((void*) (1 ? p : (type*)0)) ((void*) (1 ? p : (type*)0))
#endif #endif
#ifdef DEBUG_SAFESTACK
#define CHECKED_SK_FREE_FUNC(type, p) \ #define CHECKED_SK_FREE_FUNC(type, p) \
((void (*)(void *)) ((1 ? p : (void (*)(type *))0))) ((void (*)(void *)) ((1 ? p : (void (*)(type *))0)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册