From 910c7d18ebb465cd58d13a5eb2bd03d7b9f414cd Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 21 Nov 2025 13:37:54 +0100 Subject: 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. --- src/fl_draw.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fl_draw.cxx') 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 -- cgit v1.2.3