mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.70-bk6 make xconfig fails
@ 2003-06-01 13:41 Rudmer van Dijk
  0 siblings, 0 replies; only message in thread
From: Rudmer van Dijk @ 2003-06-01 13:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Roman Zippel

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-01 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-01 13:41 [PATCH] 2.5.70-bk6 make xconfig fails Rudmer van Dijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®