From 490890cd233a949b9023d35a6e19c9d14697f38c Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sun, 18 Mar 2018 00:21:51 +0000 Subject: [PATCH] Resolve some compiler warnings --- cde/programs/dtwm/Session.c | 6 +++--- cde/programs/dtwm/WmMultiHead.h | 2 +- cde/programs/dtwm/WmWrkspace.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cde/programs/dtwm/Session.c b/cde/programs/dtwm/Session.c index afb4d6ff..2d22f46f 100644 --- a/cde/programs/dtwm/Session.c +++ b/cde/programs/dtwm/Session.c @@ -556,7 +556,7 @@ WmFrontPanelSessionSaveData () { if (XtIsManaged (subpanel_data[i]->shell)) fprintf (fd, "%s %d %d %d\n", - subpanel_data[i]-> + (char *) subpanel_data[i]-> element_values[SUBPANEL_NAME].parsed_value, XtX (subpanel_data[i]->shell), XtY (subpanel_data[i]->shell), @@ -578,9 +578,9 @@ WmFrontPanelSessionSaveData () subpanel_data[i]->parent_control_data) { fprintf (fd, "%s %s\n", - subpanel_data[i]-> + (char *) subpanel_data[i]-> element_values[SUBPANEL_NAME].parsed_value, - subpanel_data[i]->default_control-> + (char *) subpanel_data[i]->default_control-> element_values[CONTROL_NAME].parsed_value); } diff --git a/cde/programs/dtwm/WmMultiHead.h b/cde/programs/dtwm/WmMultiHead.h index 112b03f4..000cbdb6 100644 --- a/cde/programs/dtwm/WmMultiHead.h +++ b/cde/programs/dtwm/WmMultiHead.h @@ -34,4 +34,4 @@ typedef struct _WmHeadInfo { WmHeadInfo_t *GetHeadInfo(const ClientData *pcd); -#endif _WmMultiHead_h +#endif /* _WmMultiHead_h */ diff --git a/cde/programs/dtwm/WmWrkspace.c b/cde/programs/dtwm/WmWrkspace.c index e1df4cca..65e89343 100644 --- a/cde/programs/dtwm/WmWrkspace.c +++ b/cde/programs/dtwm/WmWrkspace.c @@ -1704,7 +1704,7 @@ GenerateWorkspaceName( int wsnum ) { - static unsigned char nameReturned[10]; + static unsigned char nameReturned[13]; int i, j; /* -- 2.25.1