wcolorpanel.c: Remove warning in rgbIntToChar
commitfb5f6c30c01ecf6f4e92d7ac6a6054fc83777345
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 19 Jun 2019 19:10:57 +0000 (19 21:10 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 20 Jun 2019 21:04:31 +0000 (20 22:04 +0100)
treefb3002d299662e374573f7be69e196e0c6a06480
parent972d85610a78e245a1b4458be1dd2bba127cfd1c
wcolorpanel.c: Remove warning in rgbIntToChar

This patch removes this warning. The default case should not be used.

wcolorpanel.c: In function ‘rgbIntToChar’:
wcolorpanel.c:2392:2: warning: ‘format’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  sprintf(tmp, format, value[1]);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
WINGs/wcolorpanel.c