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:
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user