From e4dfb3e179e54177244ab668d6d84486fbd26944 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 7 Jul 2019 13:07:04 -0400 Subject: fix a possibly-uninitialized quark, and remove unnecessary casts which produced warnings Signed-off-by: Thomas E. Dickey --- src/TMparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/TMparse.c b/src/TMparse.c index 81366d2..6500324 100644 --- a/src/TMparse.c +++ b/src/TMparse.c @@ -1780,7 +1780,7 @@ static String ParseActionSeq( while (*str != '\0' && !IsNewline(*str)) { register ActionPtr action; - XrmQuark quark; + XrmQuark quark = NULLQUARK; action = XtNew(ActionRec); action->params = NULL; @@ -2068,7 +2068,7 @@ XtAccelerators XtParseAcceleratorTable( { Boolean error = FALSE; XtAccelerators ret = - (XtAccelerators) ParseTranslationTable ((char *)source, TRUE, XtTableAugment, &error); + (XtAccelerators) ParseTranslationTable (source, TRUE, XtTableAugment, &error); if (error == TRUE) XtWarningMsg ("parseError", "cvtStringToAcceleratorTable", XtCXtToolkitError, @@ -2081,7 +2081,7 @@ XtTranslations XtParseTranslationTable( _Xconst char* source) { Boolean error = FALSE; - XtTranslations ret = ParseTranslationTable((char *)source, FALSE, XtTableReplace, &error); + XtTranslations ret = ParseTranslationTable(source, FALSE, XtTableReplace, &error); if (error == TRUE) XtWarningMsg ("parseError", "cvtStringToTranslationTable", XtCXtToolkitError, -- cgit v1.2.3