Skip to content

fix warning on shadowed global symbol

../../src/wsfb_driver.c: In function 'WsfbCopyRGB16ToYUY2':
../../src/wsfb_driver.c:1362:18: warning: declaration of 'rgb' shadows a global declaration [-Wshadow]
 1362 |   const uint16_t rgb = ((rgb0 >> 1) & ~0x8410) +
      |                  ^~~
In file included from /usr/local/X11/include/xorg/xf86.h:46,
                 from ../../src/wsfb_driver.c:52:
/usr/local/X11/include/xorg/xf86str.h:114:3: note: shadowed declaration is here
  114 | } rgb;
      |   ^~~

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net

Edited by Alan Coopersmith

Merge request reports

Loading