kdb
[Top] [All Lists]

[PATCH] fix kdb compilation

To: kaos@xxxxxxxxxx
Subject: [PATCH] fix kdb compilation
From: Christoph Hellwig <hch@xxxxxxxxxx>
Date: Mon, 17 Sep 2001 09:33:18 +0200
Cc: kdb@xxxxxxxxxxx
Sender: owner-kdb@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
Hi Keith,

The attached patch fixes the cmpilation of kdb in my enviroment,
in fact I can't see where ATTRIBUTE_UNUSED might be defined elsewhere.

I have in my tree for ages and I think it should really become part
of the official tree :)

        Christoph

-- 
Of course it doesn't work. We've performed a software upgrade.

--- arch/i386/kdb/i386-dis.c~   Wed Jul 25 15:20:28 2001
+++ arch/i386/kdb/i386-dis.c    Wed Jul 25 15:20:53 2001
@@ -54,6 +54,10 @@
 #include <setjmp.h>
 #endif
 
+#ifndef ATTRIBUTE_UNUSED
+#define ATTRIBUTE_UNUSED
+#endif
+
 #ifndef UNIXWARE_COMPAT
 /* Set non-zero for broken, compatible instructions.  Set to zero for
    non-broken opcodes.  */

<Prev in Thread] Current Thread [Next in Thread>