[PATCH 00/37] Warning fixes (post 1.15 proposed changes)
Daniel Stone
daniel at fooishbar.org
Sun Nov 17 12:47:05 PST 2013
Hi,
On 17 November 2013 08:01, Keith Packard <keithp at keithp.com> wrote:
> The only warning I removed from xorg-macros was -Wcast-qual as that
> makes it impossible to free a const char * pointer. Casts exist to
> work around limitations of the C type system, having it warn when
> we're doing that is annoying.
Yeah, it's pretty ridiculous. We ship this in libxkbcommon, which
still seems to work:
#define UNCONSTIFY(const_ptr) ((void *) (uintptr_t) (const_ptr))
Cheers,
Daniel
More information about the xorg-devel
mailing list