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

List:       kde-commits
Subject:    kdebase/kdm/kfrontend
From:       Stephan Kulow <coolo () kde ! org>
Date:       2004-03-07 11:18:18
Message-ID: 20040307111818.999CA997F () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

gcc 2.95 doesn't like goto jumping over static variables


  M +1 -1      kconsole.cpp   1.8


--- kdebase/kdm/kfrontend/kconsole.cpp  #1.7:1.8
@@ -84,4 +84,5 @@ int
 KConsole::OpenConsole()
 {
+    static const char on = 1;
     if (!source.isEmpty()) {
         if ((fd = open( source.latin1(), O_RDONLY | O_NONBLOCK )) >= 0)
@@ -99,5 +100,4 @@ KConsole::OpenConsole()
 
 #ifdef TIOCCONS
-    static const char on = 1;
     if (ioctl(pty->slaveFd(), TIOCCONS, &on) < 0) {
         perror("ioctl TIOCCONS");


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

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