Author: AlbrechtS
Date: 2012-08-18 03:47:48 -0700 (Sat, 18 Aug 2012)
New Revision: 9673
Log:
Silence compiler warning: "... may be used uninitialized ..."


Modified:
   branches/branch-1.3/src/Fl_Color_Chooser.cxx

Modified: branches/branch-1.3/src/Fl_Color_Chooser.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Color_Chooser.cxx        2012-08-17 09:18:06 UTC 
(rev 9672)
+++ branches/branch-1.3/src/Fl_Color_Chooser.cxx        2012-08-18 10:47:48 UTC 
(rev 9673)
@@ -251,7 +251,7 @@
   for (int x = X; x < X+W; x++) {
     double Xf = double(x)/iw;
     double H,S; tohs(Xf,Yf,H,S);
-    double r,g,b;
+    double r=0, g=0, b=0;
     Fl_Color_Chooser::hsv2rgb(H,S,V,r,g,b);
     *buf++ = uchar(255*r+.5);
     *buf++ = uchar(255*g+.5);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to