[vlc-devel] [PATCH] swscale: fix warning
    Rémi Denis-Courmont 
    remi at remlab.net
       
    Wed Jun 11 18:28:32 CEST 2014
    
    
  
Le mercredi 11 juin 2014, 11:28:22 Tristan Matthews a écrit :
> On Wed, Jun 11, 2014 at 9:38 AM, Rémi Denis-Courmont <remi at remlab.net> 
wrote:
> > Le 2014-06-11 21:03, Tristan Matthews a écrit :
> >>> Are you sure? That does not seem like a valid cast to me.
> >> 
> >> Pretty sure, the warning it silences is:
> > When does silencing a compiler warning make an explicit cast valid since?
> 
> That's true, I guess it's not clear to me that the cast is invalid.
I am not an expert on aliasing rules but I doubt you can cast pointers to 
pointers, to pointers to pointers of different types.
If it comes to that, I prefer broken code with warnings than broken code 
without warnings.
-- 
Rémi Denis-Courmont
http://www.remlab.net/
    
    
More information about the vlc-devel
mailing list