mirror of
https://github.com/cc65/cc65.git
synced 2025-08-09 13:25:06 +00:00
Mark an unsed parameter as unused. __attribute__ also supported by cc65.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4376 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "assertion.h"
|
#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 */
|
/* Return true if this assertion should be evaluated at link time */
|
||||||
{
|
{
|
||||||
/* Currently all assertions are evaluated at link time */
|
/* Currently all assertions are evaluated at link time */
|
||||||
@@ -54,7 +55,7 @@ int AssertAtLinkTime (AssertAction A)
|
|||||||
|
|
||||||
int AssertAtAsmTime (AssertAction A)
|
int AssertAtAsmTime (AssertAction A)
|
||||||
/* Return true if this assertion should be evaluated at assembly time */
|
/* Return true if this assertion should be evaluated at assembly time */
|
||||||
{
|
{
|
||||||
return (A & 0x02U) == 0;
|
return (A & 0x02U) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000 Ullrich von Bassewitz */
|
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -44,10 +44,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) || defined(__CC65__)
|
||||||
# define attribute(a) __attribute__(a)
|
# define attribute(a) __attribute__(a)
|
||||||
#else
|
#else
|
||||||
# define attribute(a)
|
# define attribute(a)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user