Author: AlbrechtS
Date: 2012-04-09 05:36:23 -0700 (Mon, 09 Apr 2012)
New Revision: 9334
Log:
Fix compiler warning "variable set but not used".


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

Modified: branches/branch-1.3/src/Fl_Preferences.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Preferences.cxx  2012-04-09 09:19:58 UTC (rev 
9333)
+++ branches/branch-1.3/src/Fl_Preferences.cxx  2012-04-09 12:36:23 UTC (rev 
9334)
@@ -1307,10 +1307,10 @@
     char *src = entry_[i].value;
     if ( src ) {               // hack it into smaller pieces if needed
       fprintf( f, "%s:", entry_[i].name );
-      size_t cnt, written;
+      size_t cnt, written = 0;
       for ( cnt = 0; cnt < 60; cnt++ )
        if ( src[cnt]==0 ) break;
-      written = fwrite( src, cnt, 1, f );
+      written += fwrite( src, cnt, 1, f );
       fprintf( f, "\n" );
       src += cnt;
       for (;*src;) {

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

Reply via email to