diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-10-28 18:10:17 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-10-28 18:10:17 +0000 |
| commit | 1b6dae10bff9e86977f7293e14d48fb8b619a1c9 (patch) | |
| tree | ea229cfa2181cc5c4155fd522981c278edaf05d1 /test/colbrowser.cxx | |
| parent | 291faee430b13248a1b97e1ef254b9a468a67ad1 (diff) | |
Removing compiler warnings in test apps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/colbrowser.cxx')
| -rw-r--r-- | test/colbrowser.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/colbrowser.cxx b/test/colbrowser.cxx index f90559eb9..53018eb2e 100644 --- a/test/colbrowser.cxx +++ b/test/colbrowser.cxx @@ -117,8 +117,11 @@ read_entry(FILE * fp, int *r, int *g, int *b, char *name) if (!fgets(buf, sizeof(buf) - 1, fp)) return 0; - if(buf[0] == '!') - fgets(buf,sizeof(buf)-1,fp); + if(buf[0] == '!') { + if (fgets(buf,sizeof(buf)-1,fp)==0) { + /* ignore */ + } + } if(sscanf(buf, " %d %d %d %n", r, g, b, &n) < 3) return 0; |
