[PATCH] 2.5.70-bk6 make xconfig fails

From: Rudmer van Dijk (rudmer@legolas.dynup.net)
Date: Sun Jun 01 2003 - 08:41:48 EST


Hi,

this is with gcc 3.3, no error with gcc 2.95.3

  g++ -Wp,-MD,scripts/kconfig/.qconf.o.d -O2 -I/opt/qt/include -c -o
scripts/kconfig/qconf.o scripts/kconfig/qconf.cc
scripts/kconfig/qconf.cc: In destructor `virtual ConfigItem::~ConfigItem()':
scripts/kconfig/qconf.cc:291: error: non-lvalue in unary `&'
make[1]: *** [scripts/kconfig/qconf.o] Error 1
make: *** [scripts/kconfig/qconf] Error 2

following patch fixes it for gcc 3.3 (and still compiles with gcc 2.95.3).

        Rudmer

--- linux-2.5.70-bk6/scripts/kconfig/qconf.cc.orig 2003-06-01
15:19:51.000000000 +0200
+++ linux-2.5.70-bk6/scripts/kconfig/qconf.cc 2003-06-01 15:25:01.000000000
+0200
@@ -288,7 +288,7 @@
 ConfigItem::~ConfigItem(void)
 {
         if (menu) {
- ConfigItem** ip = &(ConfigItem*)menu->data;
+ ConfigItem** ip = (ConfigItem**)&menu->data;
                 for (; *ip; ip = &(*ip)->nextItem) {
                         if (*ip == this) {
                                 *ip = nextItem;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:14 EST