summaryrefslogtreecommitdiff
path: root/desktop/wbar/wbar-gcc430_and_warnings.patch
blob: 61b7df7b9ebb0f88e21725579875a77e9c13ff54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff -Naur wbar-1.3.3.orig/IconLoader.h wbar-1.3.3/IconLoader.h
--- wbar-1.3.3.orig/IconLoader.h	2006-10-20 02:25:01.000000000 +0300
+++ wbar-1.3.3/IconLoader.h	2008-03-29 14:39:46.000000000 +0200
@@ -4,6 +4,7 @@
 extern "C" {
 #include <sys/types.h>
 #include <regex.h>
+#include <stdlib.h>
 };
 
 #include <fstream>
diff -Naur wbar-1.3.3.orig/Main.cc wbar-1.3.3/Main.cc
--- wbar-1.3.3.orig/Main.cc	2007-08-06 15:28:11.000000000 +0300
+++ wbar-1.3.3/Main.cc	2008-03-29 14:42:25.000000000 +0200
@@ -82,7 +82,7 @@
 /*}}}*/
 
     /* window configuration *//*{{{*/
-    barwin.setName("wbar");
+    barwin.setName((char *)"wbar");
     if( optparser.isset("above-desk") ){
 	barwin.setDockWindow();
 	barwin.skipTaskNPager();
diff -Naur wbar-1.3.3.orig/SuperBar.h wbar-1.3.3/SuperBar.h
--- wbar-1.3.3.orig/SuperBar.h	2007-02-12 01:32:17.000000000 +0200
+++ wbar-1.3.3/SuperBar.h	2008-03-29 14:39:57.000000000 +0200
@@ -1,6 +1,7 @@
 #ifndef _SUPERBAR_H_
 #define _SUPERBAR_H_
 
+#include <stdlib.h>
 #include "ImgWrap.h"
 #include "Bar.h"
 
diff -Naur wbar-1.3.3.orig/XWin.cc wbar-1.3.3/XWin.cc
--- wbar-1.3.3.orig/XWin.cc	2007-01-26 21:15:59.000000000 +0200
+++ wbar-1.3.3/XWin.cc	2008-03-29 14:40:16.000000000 +0200
@@ -30,7 +30,7 @@
     /* Set WM Protocols to report window delete event */
     XSetWMProtocols(display, window, &delWindow, 1);
 
-    XClassHint ch = {"wbar", "wbar"};
+    XClassHint ch = {(char *)"wbar", (char *)"wbar"};
     XSetClassHint(display, window, &ch);
 }