summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-04 19:54:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-04 21:07:04 -0400
commit30a9013124591c253254255dbda16bdd516c2e9a (patch)
treeb96ec21ddfe1ac65833c79c7a3c0ffac99cf86a3
parent9836ef1ff74744dc8316b762baf9f9f5f70bbd8f (diff)
downloadxorg-lib-libXaw-30a9013124591c253254255dbda16bdd516c2e9a.tar.gz
fix a missing struct-initializer, and quiet unused-parameter warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/Form.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Form.c b/src/Form.c
index 786c130..747cd3c 100644
--- a/src/Form.c
+++ b/src/Form.c
@@ -286,6 +286,9 @@ FormClassRec formClassRec = {
/* form */
{
Layout, /* layout */
+#ifndef OLDXAW
+ NULL,
+#endif
},
};
@@ -329,6 +332,9 @@ _CvtStringToEdgeType(XrmValuePtr args, Cardinal *num_args,
XrmQuark q;
char name[12];
+ (void)args;
+ (void)num_args;
+
XmuNCopyISOLatin1Lowered(name, (char*)fromVal->addr, sizeof(name));
q = XrmStringToQuark(name);
@@ -361,6 +367,10 @@ CvtEdgeTypeToString(Display *dpy, XrmValuePtr args, Cardinal *num_args,
static String buffer;
Cardinal size;
+ (void)args;
+ (void)num_args;
+ (void)data;
+
switch (*(XtEdgeType *)fromVal->addr) {
case XtChainLeft:
buffer = XtEchainLeft;
@@ -448,6 +458,10 @@ XawFormInitialize(Widget request, Widget cnew,
{
FormWidget fw = (FormWidget)cnew;
+ (void)request;
+ (void)args;
+ (void)num_args;
+
fw->form.old_width = fw->form.old_height = 0;
fw->form.no_refigure = False;
fw->form.needs_relayout = False;
@@ -549,6 +563,9 @@ Layout(FormWidget fw, unsigned int width, unsigned int height,
Dimension maxx, maxy;
Boolean ret_val;
+ (void)width;
+ (void)height;
+
for (childP = children; childP - children < num_children; childP++) {
FormConstraints form = (FormConstraints)(*childP)->core.constraints;
form->form.layout_state = LayoutPending;
@@ -811,6 +828,8 @@ XawFormGeometryManager(Widget w, XtWidgetGeometry *request,
XtWidgetGeometry allowed;
XtGeometryResult ret_val;
+ (void)reply;
+
if ((request->request_mode & (unsigned)~(XtCWQueryOnly | CWWidth | CWHeight))
|| !form->form.allow_resize) {
/* If GeometryManager is invoked during a SetValues call on a child
@@ -943,6 +962,10 @@ XawFormSetValues(Widget current, Widget request, Widget cnew,
FormWidget f_old = (FormWidget)current;
FormWidget f_new = (FormWidget)cnew;
+ (void)request;
+ (void)args;
+ (void)num_args;
+
if (f_old->core.background_pixmap != f_new->core.background_pixmap) {
XawPixmap *opix, *npix;
@@ -966,6 +989,10 @@ XawFormConstraintInitialize(Widget request, Widget cnew,
FormConstraints form = (FormConstraints)cnew->core.constraints;
FormWidget fw = (FormWidget)cnew->core.parent;
+ (void)request;
+ (void)args;
+ (void)num_args;
+
#ifndef OLDXAW
form->form.virtual_x = XtX(cnew);
form->form.virtual_y = XtY(cnew);
@@ -990,6 +1017,10 @@ XawFormConstraintSetValues(Widget current, Widget request, Widget cnew,
FormConstraints cfc = (FormConstraints)current->core.constraints;
FormConstraints nfc = (FormConstraints)cnew->core.constraints;
+ (void)request;
+ (void)args;
+ (void)num_args;
+
if (cfc->form.top != nfc->form.top || cfc->form.bottom != nfc->form.bottom
|| cfc->form.left != nfc->form.left || cfc->form.right != nfc->form.right
|| cfc->form.dx != nfc->form.dx || cfc->form.dy != nfc->form.dy