Messages in this thread | | | Date | Fri, 27 Jun 2014 07:29:39 +0200 (CEST) | From | Julia Lawall <> | Subject | Re: [PATCH] HID: roccat: Drop cast |
| |
On Thu, 26 Jun 2014, Joe Perches wrote:
> On Thu, 2014-06-26 at 22:58 +0530, Himangi Saraogi wrote: > > This patch removes the cast on data of type void* as it is not needed. > > Hi Himangi > > The cast of a const void * to a void * was odd. > > Maybe a mechanism to verify appropriateness of > loss of constness for any pointer might be useful.
I tried the following, but didn't find anything interesting:
@disable drop_cast@ type T; const T e; @@
* (T)e
julia
| |