Hi, On 17 November 2013 08:01, Keith Packard <kei...@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 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel