lkml.org 
[lkml]   [2003]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.5.70-bk6 make xconfig fails
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.033 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site