diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-09-10 11:38:23 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-09-10 11:38:23 +0000 |
| commit | b0a222364225bd49eeff41e6f0dc380804f7ac4c (patch) | |
| tree | 6f12fa769cded427d5c732f3acaa93bd8b63af86 /CHANGES | |
| parent | 4a8e829f09034f0353a03a6b0fb1c15a81c4d9b8 (diff) | |
Fix compiler warning and potential error in PNG error handling.
Compilation with gcc -Wall -Wextra displayed the following warning:
Fl_PNG_Image.cxx: In member function ‘void Fl_PNG_Image::load_png_(const char*, const unsigned char*, int)’:
Fl_PNG_Image.cxx:118:9: warning: variable ‘fp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
Making the variable static and initializing it properly avoids this
potential error in the PNG lib's error handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'CHANGES')
| -rw-r--r-- | CHANGES | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -92,6 +92,8 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2017 Bug Fixes - (add new items here) + - Fix Fl_PNG_Image error handling. An error was potentially caused + by error handling of the image library with setjmp/longjmp. - Fix Fl_Browser background and text color parsing (STR #3376). - Fix Windows CreateDC/DeleteDC mismatch (STR #3373). - Fix Fl_Tabs label drawing for Fl_Window children (STR #3075). |
