diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-11-21 13:37:54 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-11-21 13:37:54 +0100 |
| commit | 910c7d18ebb465cd58d13a5eb2bd03d7b9f414cd (patch) | |
| tree | 0713a27d4c194423dbbeb5d9730a8276fac75bae /src/Fl_XPM_Image.cxx | |
| parent | f57891864b2cdda3bb937ce62dc4bc7f51f3294c (diff) | |
Fix a few more warnings by Clang.
- Apple Clang 17.0.0.
- png, z, jpeg lib integer cast warnings remain
- FLTK callback function cast warnings remain.
Diffstat (limited to 'src/Fl_XPM_Image.cxx')
| -rw-r--r-- | src/Fl_XPM_Image.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_XPM_Image.cxx b/src/Fl_XPM_Image.cxx index 93ef75df2..438aa544f 100644 --- a/src/Fl_XPM_Image.cxx +++ b/src/Fl_XPM_Image.cxx @@ -59,7 +59,9 @@ Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) { int malloc_size = INITIALLINES; char buffer[MAXSIZE+20]; int i = 0; - int W,H,ncolors,chars_per_pixel; + int W = 0, H = 0; + int ncolors = 0; + int chars_per_pixel = 0; while (fgets(buffer,MAXSIZE+20,f)) { if (buffer[0] != '\"') continue; char *myp = buffer; |
