On 2/12/25 04:18, Florian Weimer wrote:
* Orion Poplawski:
https://www.x.org/releases/X11R7.7/doc/libXt/intrinsics.html
Describes:
typedef struct _XtActionsRec {
String string;
XtActionProc proc;
} XtActionsRec, *XtActionList;
being initialized with:
XtActionsRec actionTable[] = {
{"Set", Set},
{"Unset", Unset},
{"Highlight", Highlight},
{"Unhighlight", Unhighlight}
{"Notify", Notify},
};
But this is no longer valid it seems for at least a couple
reasons. First the initializer:
interface/x_interface.c: In function ‘check_app_res’:
interface/x_interface.c:617:29: error: storage class specified for
parameter ‘new_actions’
617 | static XtActionsRec new_actions[] = {
| ^~~~~~~~~~~
interface/x_interface.c:617:9: error: parameter ‘new_actions’ is initialized
617 | static XtActionsRec new_actions[] = {
| ^~~~~~
interface/x_interface.c:617:45: error: variable-sized object may not
be initialized except with an empty initializer
617 | static XtActionsRec new_actions[] = {
| ^
It's a missing semicolon on a function protoype, the lines declaring
expose_ccontour or expose_colorbar:
void do_set_max_from_curdata(Widget w, XButtonEvent *e, String *p, Cardinal \
*n );
void expose_ccontour( Widget w, XtPointer client_data, XExposeEvent *event, Boo\
lean *continue_to_dispatch )
void expose_colorbar( Widget w, XtPointer client_data, XExposeEvent *event, Boo\
lean *continue_to_dispatch )
void testf(Widget w, XButtonEvent *e, String *p, Cardinal *n );
Thanks,
Florian
Thank you - that was indeed the problem. Good catch.
--
Orion Poplawski
he/him/his - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxx
Boulder, CO 80301 https://www.nwra.com/
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue