Author: AlbrechtS
Date: 2012-04-09 05:37:21 -0700 (Mon, 09 Apr 2012)
New Revision: 9335
Log:
Fix compiler warning "variable set but not used".
Modified:
branches/branch-3.0/src/fltk3/Preferences.cxx
Modified: branches/branch-3.0/src/fltk3/Preferences.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/Preferences.cxx 2012-04-09 12:36:23 UTC
(rev 9334)
+++ branches/branch-3.0/src/fltk3/Preferences.cxx 2012-04-09 12:37:21 UTC
(rev 9335)
@@ -1316,10 +1316,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