summaryrefslogtreecommitdiff
path: root/src/Fl_Help_View.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_Help_View.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_Help_View.cxx')
-rw-r--r--src/Fl_Help_View.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index da436a5f5..8ebcceecc 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -886,7 +886,7 @@ int Fl_Help_View::Impl::do_align(
void Fl_Help_View::Impl::format() {
int i; // Looping var
int done; // Are we done yet?
- Text_Block *block, // Current block
+ Text_Block *block = nullptr, // Current block
*cell; // Current table cell
int cells[MAX_COLUMNS],
// Cells in the current row...
@@ -899,7 +899,7 @@ void Fl_Help_View::Impl::format() {
wattr[1024], // Width attribute buffer
hattr[1024], // Height attribute buffer
linkdest[1024]; // Link destination
- int xx, yy, ww, hh; // Size of current text fragment
+ int xx, yy, ww, hh = 0; // Size of current text fragment
int line; // Current line in block
int links; // Links for current line
Fl_Font font;