mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +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:
parent
548336a7bd
commit
399c37273d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
@ -44,10 +44,10 @@
|
||||
|
||||
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if defined(__GNUC__) || defined(__CC65__)
|
||||
# define attribute(a) __attribute__(a)
|
||||
#else
|
||||
# define attribute(a)
|
||||
# define attribute(a)
|
||||
#endif
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user