From kde-core-devel Mon Jan 29 23:14:00 2001 From: Dirk Mueller Date: Mon, 29 Jan 2001 23:14:00 +0000 To: kde-core-devel Subject: patch: compiler (preprocessor) warning X-MARC-Message: https://marc.info/?l=kde-core-devel&m=98081012412631 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--ZPt4rx8FFjLCG7dd" --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, below a patch to avoid a warning with gcc 3. It still compiles with gcc 2.95.2, however I'm not sure if this won't break other compilers. can you please give it a try and tell me the result? Thanks, Dirk. --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kdprop.patch" Index: kdcoppropertyproxy.cpp =================================================================== RCS file: /home/kde/kdelibs/kdecore/kdcoppropertyproxy.cpp,v retrieving revision 1.3 diff -u -2 -d -p -b -r1.3 kdcoppropertyproxy.cpp --- kdcoppropertyproxy.cpp 2000/07/18 16:57:19 1.3 +++ kdcoppropertyproxy.cpp 2001/01/29 23:08:37 @@ -190,5 +190,5 @@ bool KDCOPPropertyProxy::processProperty #define DEMARSHAL( type, val ) \ - case QVariant::##type: \ + case QVariant::type: \ { \ val v; \ @@ -258,5 +258,5 @@ bool KDCOPPropertyProxy::processProperty #define MARSHAL( type ) \ - case QVariant::##type: \ + case QVariant::type: \ reply << prop.to##type(); \ break; --ZPt4rx8FFjLCG7dd--