summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-12-09 18:58:12 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-12-09 18:58:12 +0100
commit68ff3d0697691f5611176e8f8449d66b1e3535c4 (patch)
treed8f6453f6c6652806c4110c1120fec84ef2cf9c2
parentd95ea68ee21d8e4e9790dc909d53d9c7a3417aa2 (diff)
Silence macOS (clang) compiler warning
warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] 399 | typedef struct { | ^ Weird. This file is compiled as C++ but clang warns about a "non-C-compatible type". Anyway, this commit fixes the warning.
-rw-r--r--src/fl_boxtype.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_boxtype.cxx b/src/fl_boxtype.cxx
index 8c6998344..a9c44be08 100644
--- a/src/fl_boxtype.cxx
+++ b/src/fl_boxtype.cxx
@@ -396,7 +396,7 @@ void fl_oxy_round_down_box(int x, int y, int w, int h, Fl_Color col);
// See also Fl::box_bg() which returns true if bit 1 == zero.
// /////////////////////////////////////////////////////////////////////
-typedef struct {
+typedef struct BOXTABLE {
Fl_Box_Draw_F *f;
uchar dx, dy, dw, dh;
int flags;