]> git.sur5r.net Git - cc65/commitdiff
Mark an unsed parameter as unused. __attribute__ also supported by cc65.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 19 Oct 2009 17:25:43 +0000 (17:25 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 19 Oct 2009 17:25:43 +0000 (17:25 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4376 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/assertion.c
src/common/attrib.h

index 8d93be43008fd8a07f5544a5d8e1342c1aeab866..d854c95f132e2b1df96e9f01d63dec5b7829e01a 100644 (file)
@@ -34,6 +34,7 @@
 
 
 #include "assertion.h"
+#include "attrib.h"
 
 
 
@@ -43,7 +44,7 @@
 
 
 
-int AssertAtLinkTime (AssertAction A)
+int AssertAtLinkTime (AssertAction A attribute ((unused)))
 /* Return true if this assertion should be evaluated at link time */
 {
     /* Currently all assertions are evaluated at link time */
@@ -54,7 +55,7 @@ int AssertAtLinkTime (AssertAction A)
 
 int AssertAtAsmTime (AssertAction A)
 /* Return true if this assertion should be evaluated at assembly time */
-{            
+{
     return (A & 0x02U) == 0;
 }
 
index 7ff01a608dba0291e30aad1d317190e7f4b58213..cb9d9195cc379488a033de3e7775baada369adac 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 2000-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__CC65__)
 #  define attribute(a) __attribute__(a)
 #else
-#  define attribute(a) 
+#  define attribute(a)
 #endif