From: Ivan Maidanski Date: Fri, 20 Jul 2012 09:09:18 +0000 (+0400) Subject: Suppress GCC warning in GC_get_main_stack_base (OpenBSD) X-Git-Tag: gc7_4_0~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c640c6ff33df8821113214a3f9a948b4dfc019f2;p=gc Suppress GCC warning in GC_get_main_stack_base (OpenBSD) * include/private/gcconfig.h (STACKBOTTOM): Cast USRSTACK to ptr_t if OPENBSD (to suppress GCC warning in GC_get_main_stack_base). --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index aff78740..5a1453c5 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -878,7 +878,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -1080,7 +1080,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -1357,7 +1357,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -1594,7 +1594,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int _fdata[]; # define DATASTART ((ptr_t)_fdata) @@ -1672,7 +1672,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -1704,7 +1704,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -2014,7 +2014,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -2073,7 +2073,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start) @@ -2139,7 +2139,7 @@ # else # include # include -# define STACKBOTTOM USRSTACK +# define STACKBOTTOM ((ptr_t) USRSTACK) # endif extern int __data_start[]; # define DATASTART ((ptr_t)__data_start)