[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Gcc 2.95 patch for kdebase 3.3.92
From:       Aurélien_Gâteau <agateau () dental-on-line ! fr>
Date:       2005-02-17 15:45:47
Message-ID: 200502171645.47469.agateau () dental-on-line ! fr
[Download RAW message or body]

Hello,

Attached is a patch to build kdebase 3.3.92 with gcc 2.95.
-- 
Aurélien Gâteau
agateau@dental-on-line.fr
Dental-on-line - 23 rue du Départ - 75014 PARIS

["kdebase-3.3.92_gcc-2.95.patch" (text/x-diff)]

--- kompmgr.c	Mon Jan 31 19:51:40 2005
+++ /var/kde34/konstruct/kde/kdebase/work/kdebase-3.3.92/kwin/kompmgr/kompmgr.c	Thu Feb 17 14:22:46 2005
@@ -254,8 +254,8 @@
 void
 dequeue_fade (Display *dpy, fade *f)
 {
-    f->w->isInFade = False;
     fade    **prev;
+    f->w->isInFade = False;
 
     for (prev = &fades; *prev; prev = &(*prev)->next)
 	if (*prev == f)
@@ -2143,9 +2143,9 @@
     Bool            section = False;
     
     if( filename == NULL ){
-        wasNull = True;
         const char *home = getenv("HOME");
         const char *configfile = "/.xcompmgrrc"; 
+        wasNull = True;
         filename = (char*)malloc((strlen(home)+strlen(configfile)+1)*sizeof(char));
         
         strcat(filename, home);
@@ -2237,6 +2237,7 @@
     int		    composite_major, composite_minor;
     
     int		    o;
+    char **res = NULL;
     
     shadowColor.red = 0;
     shadowColor.green = 0;
@@ -2244,7 +2245,6 @@
 
     loadConfig(NULL); /*we do that before cmdline-parsing, so config-values can be overridden*/
     /*used for shadow colors*/
-    char **res = NULL;
     while ((o = getopt (argc, argv, "D:I:O:d:r:o:l:t:scnfFCaSx:vh")) != -1)
     {
 	switch (o) {
@@ -2399,6 +2399,7 @@
 	XCompositeRedirectSubwindows (dpy, root, CompositeRedirectAutomatic);
     else
     {
+        int dummy;
 	XCompositeRedirectSubwindows (dpy, root, CompositeRedirectManual);
 	XSelectInput (dpy, root, 
 		      SubstructureNotifyMask|
@@ -2408,7 +2409,6 @@
                       VisibilityChangeMask);
         
         /*shaping stuff*/
-        int dummy;
         XShapeQueryExtension(dpy, &shapeEvent, &dummy);
         
 	XQueryTree (dpy, root, &root_return, &parent_return, &children, &nchildren);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic