Resolve some compiler warnings
authorPeter Howkins <flibble@users.sf.net>
Sun, 18 Mar 2018 00:21:51 +0000 (00:21 +0000)
committerPeter Howkins <flibble@users.sf.net>
Sun, 18 Mar 2018 00:21:51 +0000 (00:21 +0000)
cde/programs/dtwm/Session.c
cde/programs/dtwm/WmMultiHead.h
cde/programs/dtwm/WmWrkspace.c

index afb4d6ffdf803f3fb057eeb493779543453fc800..2d22f46f5c2ab8124593d2fd512857496174db19 100644 (file)
@@ -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);
               
            }
index 112b03f4d8564b083316eb8e2f866d75925f08e6..000cbdb6dc4bed4dd6a6a1ed6d8c7cc27325c412 100644 (file)
@@ -34,4 +34,4 @@ typedef struct _WmHeadInfo {
 
 WmHeadInfo_t *GetHeadInfo(const ClientData *pcd);
 
-#endif _WmMultiHead_h
+#endif /* _WmMultiHead_h */
index e1df4cca2fc2542356fb3759d0980ef940f71ba3..65e8934315da2067e065986563db22d730b73ac9 100644 (file)
@@ -1704,7 +1704,7 @@ GenerateWorkspaceName(
         int wsnum )
 
 {
-    static unsigned char nameReturned[10];
+    static unsigned char nameReturned[13];
     int i, j;
 
     /*