summaryrefslogtreecommitdiff
path: root/src/fl_draw.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-21 13:37:54 +0100
committerMatthias Melcher <github@matthiasm.com>2025-11-21 13:37:54 +0100
commit910c7d18ebb465cd58d13a5eb2bd03d7b9f414cd (patch)
tree0713a27d4c194423dbbeb5d9730a8276fac75bae /src/fl_draw.cxx
parentf57891864b2cdda3bb937ce62dc4bc7f51f3294c (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_draw.cxx')
-rw-r--r--src/fl_draw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx
index 652f46058..30e683cec 100644
--- a/src/fl_draw.cxx
+++ b/src/fl_draw.cxx
@@ -201,7 +201,7 @@ void fl_draw(
char *linebuf = NULL; // Pointer to a buffer managed by expand_text_
const char* p; // Scratch pointer into text, multiple use
const char* e; // Scratch pointer into text, multiple use
- int buflen; // Number of bytes copied into linebuf
+ int buflen = 0; // Number of bytes copied into linebuf
// by expand_text_
char symbol[2][255]; // Copy of symbol text at start and end of str
int symwidth[2]; // Width and height of symbols (always square)
@@ -211,7 +211,7 @@ void fl_draw(
int imgvert = ((align&FL_ALIGN_IMAGE_NEXT_TO_TEXT)==0); // True if image is
// above or below text
int lines; // Number of text lines including '\n' and wrapping
- double width; // width of the longest text line
+ double width = 0.0; // width of the longest text line
int height = fl_height(); // Height of a line of text