fltk1.4 warning

61 views
Skip to first unread message

Gonzalo Garramuno

unread,
May 9, 2021, 9:34:20 PM5/9/21
to fltkg...@googlegroups.com
Fltk 1.4 is now showing a warning on the latest xcode:

In file included from ../test/scroll.cxx:19:
../FL/Fl_Scroll.H:102:17: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
typedef struct {
^
ScrollInfo
../FL/Fl_Scroll.H:104:5: note: type is not C-compatible due to this member declaration
typedef struct { int x,y,w,h; } Fl_Region_XYWH;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../FL/Fl_Scroll.H:128:5: note: type is given name 'ScrollInfo' for linkage purposes by this typedef declaration
} ScrollInfo;


Gonzalo Garramuno
ggar...@gmail.com




Bill Spitzak

unread,
May 9, 2021, 9:56:47 PM5/9/21
to fltkg...@googlegroups.com
This is pretty old, it should just be changed to "struct ScrollInfo {...}"

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/BF42C047-43B9-4551-AA42-D27CDEC45440%40gmail.com.

Albrecht Schlosser

unread,
May 10, 2021, 6:07:05 AM5/10/21
to fltkg...@googlegroups.com
Thanks for the report, this has been fixed a week ago in commit
08a8e78d6e8398.

Please pull from git or use the latest snapshot.
Reply all
Reply to author
Forward
0 new messages