dtcalc: Resolve "missing sentinel in function call [-Wformat]" warnings

Caused by XtVaGetValues() and XtVaSetValues() variable arguments lists
needing to be terminated by NULL not 0.
This commit is contained in:
Peter Howkins
2012-08-22 10:44:33 +01:00
parent f98d6f41d3
commit 7d50721685
2 changed files with 17 additions and 17 deletions

View File

@@ -83,7 +83,7 @@ char *str ;
switch (ttype)
{
case T_LABEL : cstr = XmStringCreateLocalized(str) ;
XtVaSetValues(w->label, XmNlabelString, cstr, 0) ;
XtVaSetValues(w->label, XmNlabelString, cstr, NULL) ;
XmStringFree(cstr) ;
break ;
case T_VALUE : XmTextFieldSetString(w->textfield, str) ;