From ad4af48009656bd07f06bbed0551ad23f3882fb2 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 4 Jun 2012 11:04:00 -0400 Subject: Add macro to suppress const warnings --- proxy/src/gp_common.h | 2 ++ 1 file changed, 2 insertions(+) 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; \ -- cgit