bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sc_cast_of_argument_to_free


From: Reuben Thomas
Subject: sc_cast_of_argument_to_free
Date: Fri, 3 Apr 2009 14:57:18 +0100 (BST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Why is this rule valid? GCC gives warnings if const pointers are not cast to non-const before passing to C. As far as I can see, this is correct: free takes a non-const argument. Should malloced memory simply not be assigned to a const pointer?

--
http://rrt.sc3d.org/ | Bathe or shower daily: the ablutive absolute




reply via email to

[Prev in Thread] Current Thread [Next in Thread]