• Show log

    Commit

  • Hash : 922623e1
    Author : Ozkan Sezer
    Date : 2018-10-01T21:29:11

    SDL_blit_N.c (BlitNtoNKeyCopyAlpha):  fix -Wshadow warnings by adding _
      suffix to the temp Pixel local in the DUFFS_LOOP.
    SDL_blit.h (ASSEMBLE_RGB):  add _ prefix to temp Pixel locals to avoid
      any possible shadowings.
    
    
    The warnings were like the following:
    
    In file included from src/video/SDL_blit_N.c:26:0:
    src/video/SDL_blit_N.c: In function 'BlitNtoNKeyCopyAlpha':
    src/video/SDL_blit_N.c:2421:24: warning: declaration of 'Pixel' shadows a previous local [-Wshadow]
                     Uint32 Pixel = ((*src32 & rgbmask) == ckey) ? *dst32 : *src32;
                            ^
    src/video/SDL_blit.h:475:21: note: in definition of macro 'DUFFS_LOOP8'
         case 0: do {    pixel_copy_increment; /* fallthrough */             \
                         ^
    src/video/SDL_blit_N.c:2419:13: note: in expansion of macro 'DUFFS_LOOP'
                 DUFFS_LOOP(
                 ^
    src/video/SDL_blit_N.c:2399:12: warning: shadowed declaration is here [-Wshadow]
         Uint32 Pixel;
                ^
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags