]> git.ozlabs.org Git - ccan/commit
cast: fix compilation with GCC's -Wcast-qual
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:47:42 +0000 (22:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:47:42 +0000 (22:17 +1030)
commit1313203b72656e8480805c7688c187d274fdceeb
tree104ee821bbe002d5c5241f1be80d89e04a1a82cc
parentd5bb8e8d1c6731a3db234393c8d196b3b50084f2
cast: fix compilation with GCC's -Wcast-qual

Samba uses -Wcast-qual to warn about casting away const.  The kind of
coders who care about const correctness are likely to turn that option
on, so we should make sure it's compatible with cast_const().
ccan/cast/cast.h