Skip to content
Snippets Groups Projects
  • Alan Coopersmith's avatar
    b0dd4260
    Fix 3 -Wuseless-cast warnings from gcc 14.2 · b0dd4260
    Alan Coopersmith authored
    
    Unwrap.c: In function ‘XdmcpUnwrap’:
    Unwrap.c:77:25: warning: useless cast to type ‘unsigned char *’ [-Wuseless-cast]
       77 |         _XdmcpAuthDoIt ((unsigned char *) (input + j), (unsigned char *) tmp, schedule, 0);
          |                         ^
    Unwrap.c:77:56: warning: useless cast to type ‘unsigned char *’ [-Wuseless-cast]
       77 |         _XdmcpAuthDoIt ((unsigned char *) (input + j), (unsigned char *) tmp, schedule, 0);
          |                                                        ^
    
    Write.c: In function ‘XdmcpWriteHeader’:
    Write.c:43:9: warning: useless cast to type ‘int’ [-Wuseless-cast]
       43 |     if ((int)buffer->size < 6 + (int)header->length)
          |         ^
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Part-of: <!11>
    b0dd4260
    History
    Fix 3 -Wuseless-cast warnings from gcc 14.2
    Alan Coopersmith authored
    
    Unwrap.c: In function ‘XdmcpUnwrap’:
    Unwrap.c:77:25: warning: useless cast to type ‘unsigned char *’ [-Wuseless-cast]
       77 |         _XdmcpAuthDoIt ((unsigned char *) (input + j), (unsigned char *) tmp, schedule, 0);
          |                         ^
    Unwrap.c:77:56: warning: useless cast to type ‘unsigned char *’ [-Wuseless-cast]
       77 |         _XdmcpAuthDoIt ((unsigned char *) (input + j), (unsigned char *) tmp, schedule, 0);
          |                                                        ^
    
    Write.c: In function ‘XdmcpWriteHeader’:
    Write.c:43:9: warning: useless cast to type ‘int’ [-Wuseless-cast]
       43 |     if ((int)buffer->size < 6 + (int)header->length)
          |         ^
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Part-of: <!11>