In <X11/StringDefs.h>, we have the following:
#define _XtStringDefs_h_Const const
extern _XtStringDefs_h_Const char XtStrings;
#define XtNaccelerators ((char*)&XtStrings)
So the cast in the define is discarding the const qualifier, and gcc
complains whenever one of these defines is used:
warning: cast discards qualifiers from pointer target type
Why is the cast there at all? Why not simply have:
#define XtNaccelerators (&XtStrings)
I guess this would be a simple patch to the makestrs program. The current
behavior seems to be hard-wired into the IntelABIWriteHeader()
and DefaultWriteHeader() functions...
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxt/issues/1.