On Mon, Jun 20, 2005 at 10:26:32PM +0200, Stefan Huehner wrote:
> In samba_4 sourcecode i discovered the following macros, which are
> apparently a hack but silences these warnings:
>
> #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
> #define discard_const_p(type, ptr) ((type *)discard_con
Hi,
On Mon, Jun 20, 2005 at 10:26:32PM +0200, Stefan Huehner wrote about 'unicode.h
and -Wcast-qual':
> Hi,
> i am currently trying to fix the -Wcast-qual warnings. In
> include/wine/unicode.h there a 4 function:
> In samba_4 sourcecode i discovered the following macros,
Stefan Huehner wrote:
>I am not sure how portable this solution is...
>
>
To make it portable you can use ULONG_PTR instead
of intptr_t.
Jacek
Hi,
i am currently trying to fix the -Wcast-qual warnings. In
include/wine/unicode.h there a 4 function:
static inline int strncmpW( const WCHAR *str1, const WCHAR *str2, int n)
static inline WCHAR *strchrW( const WCHAR *str, WCHAR ch )
static inline WCHAR *strrchrW( const WCHAR *str, WCHAR ch )