diff options
author | Simo Sorce <simo@redhat.com> | 2012-06-04 11:04:00 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-08-31 16:26:38 -0400 |
commit | 798883aad353add2f9830e6e2c993ac804411639 (patch) | |
tree | b652f90bce29526c7902b359e852c584ed22efd4 | |
parent | dc63375d2b35efb6e9b09bd42f4c2ae6c3c2f663 (diff) | |
download | gss-proxy-798883aad353add2f9830e6e2c993ac804411639.tar.gz gss-proxy-798883aad353add2f9830e6e2c993ac804411639.tar.xz gss-proxy-798883aad353add2f9830e6e2c993ac804411639.zip |
Add macro to suppress const warnings
-rw-r--r-- | proxy/src/gp_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h index 981eb75..0de698c 100644 --- a/proxy/src/gp_common.h +++ b/proxy/src/gp_common.h @@ -29,6 +29,8 @@ #include "gp_debug.h" #include "gp_log.h" +#define no_const(ptr) ((void *)((uintptr_t)(ptr))) + /* add element to list head */ #define LIST_ADD(list, elem) do { \ elem->prev = NULL; \ |