diff options
| author | Manolo Gouy <Manolo> | 2011-01-19 06:33:48 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-19 06:33:48 +0000 |
| commit | b015837b2a23407a9726035dba4b80d85a949ba6 (patch) | |
| tree | ff727154924570665a965ef5348acb10cf2bcceb /src | |
| parent | 39ae4651bfb66eca09020677bf56da37134a5dab (diff) | |
Removed gcc 4.4 compiler warning:
Fl_Preferences.cxx:1322: warning: ignoring return value of
‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Preferences.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index 7e70e7316..024135942 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -1316,17 +1316,17 @@ int Fl_Preferences::Node::write( FILE *f ) { char *src = entry_[i].value; if ( src ) { // hack it into smaller pieces if needed fprintf( f, "%s:", entry_[i].name ); - int cnt; + int cnt, written; for ( cnt = 0; cnt < 60; cnt++ ) if ( src[cnt]==0 ) break; - fwrite( src, cnt, 1, f ); + written = fwrite( src, cnt, 1, f ); fprintf( f, "\n" ); src += cnt; for (;*src;) { for ( cnt = 0; cnt < 80; cnt++ ) if ( src[cnt]==0 ) break; fputc( '+', f ); - fwrite( src, cnt, 1, f ); + written = fwrite( src, cnt, 1, f ); fputc( '\n', f ); src += cnt; } |
