mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-25 00:07:09 -07:00
Fix rash build on os x by adding the unused attribute to functions declared static that are not called in the rash variety.
Copied from Perforce Change: 185915 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
bd0e9da9ce
commit
4c655eba6a
20 changed files with 47 additions and 2 deletions
|
|
@ -61,6 +61,7 @@ typedef struct ClientChunkStruct {
|
|||
|
||||
/* ClientChunkCheck -- check the consistency of a client chunk */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool ClientChunkCheck(ClientChunk clChunk)
|
||||
{
|
||||
Chunk chunk;
|
||||
|
|
@ -77,6 +78,7 @@ static Bool ClientChunkCheck(ClientChunk clChunk)
|
|||
|
||||
/* ClientArenaCheck -- check the consistency of a client arena */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool ClientArenaCheck(ClientArena clientArena)
|
||||
{
|
||||
CHECKS(ClientArena, clientArena);
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ static void VMCompact(Arena arena, Trace trace);
|
|||
|
||||
/* VMChunkCheck -- check the consistency of a VM chunk */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool VMChunkCheck(VMChunk vmchunk)
|
||||
{
|
||||
Chunk chunk;
|
||||
|
|
@ -152,6 +153,7 @@ static Bool VMChunkCheck(VMChunk vmchunk)
|
|||
|
||||
/* VMArenaCheck -- check the consistency of an arena structure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool VMArenaCheck(VMArena vmArena)
|
||||
{
|
||||
Arena arena;
|
||||
|
|
|
|||
|
|
@ -994,6 +994,7 @@ AllocPattern AllocPatternRampCollectAll(void)
|
|||
return &AllocPatternRampCollectAllStruct;
|
||||
}
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AllocPatternCheck(AllocPattern pattern)
|
||||
{
|
||||
CHECKL(pattern == &AllocPatternRampCollectAllStruct
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ Bool CBSCheck(CBS cbs)
|
|||
}
|
||||
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool CBSBlockCheck(CBSBlock block)
|
||||
{
|
||||
/* See .enter-leave.simple. */
|
||||
|
|
|
|||
|
|
@ -241,6 +241,15 @@
|
|||
#define ATTRIBUTE_NORETURN
|
||||
#endif
|
||||
|
||||
/* Attribute for functions that may be unused in some build configurations.
|
||||
* GCC: <http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html>
|
||||
*/
|
||||
#if defined(MPS_BUILD_GC) || defined(MPS_BUILD_LL)
|
||||
#define ATTRIBUTE_UNUSED __attribute__((__unused__))
|
||||
#else
|
||||
#define ATTRIBUTE_UNUSED
|
||||
#endif
|
||||
|
||||
|
||||
/* EPVMDefaultSubsequentSegSIZE is a default for the alignment of
|
||||
* subsequent segments (non-initial at each save level) in EPVM. See
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* freelist.c: FREE LIST ALLOCATOR IMPLEMENTATION
|
||||
*
|
||||
* $Id$
|
||||
* Copyright (c) 2013 Ravenbrook Limited. See end of file for license.
|
||||
* Copyright (c) 2013-2014 Ravenbrook Limited. See end of file for license.
|
||||
*
|
||||
* .sources: <design/freelist/>.
|
||||
*/
|
||||
|
|
@ -60,6 +60,7 @@ static Addr FreelistBlockLimit(Freelist fl, FreelistBlock block)
|
|||
|
||||
/* FreelistBlockCheck -- check a block. */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool FreelistBlockCheck(FreelistBlock block)
|
||||
{
|
||||
CHECKL(block != NULL);
|
||||
|
|
@ -626,7 +627,7 @@ void FreelistFlushToCBS(Freelist fl, CBS cbs)
|
|||
|
||||
/* C. COPYRIGHT AND LICENSE
|
||||
*
|
||||
* Copyright (C) 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* Copyright (C) 2013-2014 Ravenbrook Limited <http://www.ravenbrook.com/>.
|
||||
* All rights reserved. This is an open source license. Contact
|
||||
* Ravenbrook for commercial licensing options.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ void SegPrefExpress(SegPref pref, SegPrefKind kind, void *p)
|
|||
|
||||
/* GenDescCheck -- check a GenDesc */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool GenDescCheck(GenDesc gen)
|
||||
{
|
||||
CHECKS(GenDesc, gen);
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ SRCID(mpsi, "$Id$");
|
|||
* .check.enum.cast: enum comparisons have to be cast to avoid a warning
|
||||
* from the SunPro C compiler. See builder.sc.warn.enum. */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool mpsi_check(void)
|
||||
{
|
||||
CHECKL(COMPATTYPE(mps_res_t, Res));
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ typedef struct amcSegStruct {
|
|||
#define amcSeg2Seg(amcseg) ((Seg)(amcseg))
|
||||
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool amcSegCheck(amcSeg amcseg)
|
||||
{
|
||||
CHECKS(amcSeg, amcseg);
|
||||
|
|
@ -475,6 +476,7 @@ typedef struct AMCStruct { /* <design/poolamc/#struct> */
|
|||
|
||||
/* amcGenCheck -- check consistency of a generation structure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool amcGenCheck(amcGen gen)
|
||||
{
|
||||
Arena arena;
|
||||
|
|
@ -524,6 +526,7 @@ typedef struct amcBufStruct {
|
|||
|
||||
/* amcBufCheck -- check consistency of an amcBuf */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool amcBufCheck(amcBuf amcbuf)
|
||||
{
|
||||
CHECKS(amcBuf, amcbuf);
|
||||
|
|
@ -2445,6 +2448,8 @@ void mps_amc_apply(mps_pool_t mps_pool,
|
|||
*
|
||||
* See <design/poolamc/#check>.
|
||||
*/
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AMCCheck(AMC amc)
|
||||
{
|
||||
CHECKS(AMC, amc);
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ typedef struct AWLSegStruct {
|
|||
extern SegClass AWLSegClassGet(void);
|
||||
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AWLSegCheck(AWLSeg awlseg)
|
||||
{
|
||||
CHECKS(AWLSeg, awlseg);
|
||||
|
|
@ -1299,6 +1300,7 @@ mps_class_t mps_class_awl(void)
|
|||
|
||||
/* AWLCheck -- check an AWL pool */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AWLCheck(AWL awl)
|
||||
{
|
||||
CHECKS(AWL, awl);
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ DEFINE_SEG_CLASS(LOSegClass, class)
|
|||
|
||||
/* LOSegCheck -- check an LO segment */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool LOSegCheck(LOSeg loseg)
|
||||
{
|
||||
CHECKS(LOSeg, loseg);
|
||||
|
|
@ -184,6 +185,7 @@ static void loSegFinish(Seg seg)
|
|||
}
|
||||
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Count loSegBits(LOSeg loseg)
|
||||
{
|
||||
LO lo;
|
||||
|
|
@ -805,6 +807,7 @@ mps_class_t mps_class_lo(void)
|
|||
|
||||
/* LOCheck -- check an LO pool */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool LOCheck(LO lo)
|
||||
{
|
||||
CHECKS(LO, lo);
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ typedef struct MRGStruct {
|
|||
|
||||
/* MRGCheck -- check an MRG pool */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MRGCheck(MRG mrg)
|
||||
{
|
||||
CHECKS(MRG, mrg);
|
||||
|
|
@ -178,6 +179,8 @@ extern SegClass MRGRefSegClassGet(void);
|
|||
* field will be NULL. This will be initialized when the reference
|
||||
* segment is initialized. See <design/poolmrg/#mrgseg.link.refseg>.
|
||||
*/
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MRGLinkSegCheck(MRGLinkSeg linkseg)
|
||||
{
|
||||
Seg seg;
|
||||
|
|
@ -193,6 +196,7 @@ static Bool MRGLinkSegCheck(MRGLinkSeg linkseg)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MRGRefSegCheck(MRGRefSeg refseg)
|
||||
{
|
||||
Seg seg;
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ typedef struct MVBlockStruct {
|
|||
|
||||
/* MVBlockCheck -- check the consistency of a block structure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MVBlockCheck(MVBlock block)
|
||||
{
|
||||
AVER(block != NULL);
|
||||
|
|
@ -130,6 +131,7 @@ typedef struct MVSpanStruct {
|
|||
|
||||
/* MVSpanCheck -- check the consistency of a span structure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MVSpanCheck(MVSpan span)
|
||||
{
|
||||
Addr addr, base, limit;
|
||||
|
|
|
|||
|
|
@ -356,6 +356,7 @@ failCBS:
|
|||
|
||||
/* MVTCheck -- validate an MVT Pool */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MVTCheck(MVT mvt)
|
||||
{
|
||||
CHECKS(MVT, mvt);
|
||||
|
|
|
|||
|
|
@ -791,6 +791,7 @@ size_t mps_mvff_size(mps_pool_t mps_pool)
|
|||
|
||||
/* MVFFCheck -- check the consistency of an MVFF structure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool MVFFCheck(MVFF mvff)
|
||||
{
|
||||
CHECKS(MVFF, mvff);
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ typedef struct SNCBufStruct {
|
|||
|
||||
/* SNCBufCheck -- check consistency of an SNCBuf */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool SNCBufCheck(SNCBuf sncbuf)
|
||||
{
|
||||
SegBuf segbuf;
|
||||
|
|
@ -214,6 +215,7 @@ typedef struct SNCSegStruct {
|
|||
#define sncSegSetNext(seg, nextseg) \
|
||||
((void)(SegSNCSeg(seg)->next = SegSNCSeg(nextseg)))
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool SNCSegCheck(SNCSeg sncseg)
|
||||
{
|
||||
CHECKS(SNCSeg, sncseg);
|
||||
|
|
@ -696,6 +698,7 @@ mps_class_t mps_class_snc(void)
|
|||
|
||||
/* SNCCheck -- Check an SNC pool */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool SNCCheck(SNC snc)
|
||||
{
|
||||
CHECKS(SNC, snc);
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ Bool ReservoirCheck(Reservoir reservoir)
|
|||
|
||||
/* reservoirIsConsistent -- returns FALSE if the reservoir is corrupt */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool reservoirIsConsistent(Reservoir reservoir)
|
||||
{
|
||||
Size alignment, size = 0;
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ static Bool sacFreeListBlockCheck(SACFreeListBlock fb)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool SACCheck(SAC sac)
|
||||
{
|
||||
Index i, j;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ typedef struct AMSTStruct *AMST;
|
|||
|
||||
/* AMSTCheck -- the check method for an AMST */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AMSTCheck(AMST amst)
|
||||
{
|
||||
CHECKS(AMST, amst);
|
||||
|
|
@ -96,6 +97,7 @@ typedef struct AMSTSegStruct {
|
|||
|
||||
/* AMSTSegCheck -- check the AMST segment */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool AMSTSegCheck(AMSTSeg amstseg)
|
||||
{
|
||||
CHECKS(AMSTSeg, amstseg);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ typedef struct FormattedObjectsStepClosureStruct {
|
|||
} FormattedObjectsStepClosureStruct;
|
||||
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool FormattedObjectsStepClosureCheck(FormattedObjectsStepClosure c)
|
||||
{
|
||||
CHECKS(FormattedObjectsStepClosure, c);
|
||||
|
|
@ -164,6 +165,7 @@ typedef struct rootsStepClosureStruct {
|
|||
|
||||
/* rootsStepClosureCheck -- check a rootsStepClosure */
|
||||
|
||||
ATTRIBUTE_UNUSED
|
||||
static Bool rootsStepClosureCheck(rootsStepClosure rsc)
|
||||
{
|
||||
CHECKS(rootsStepClosure, rsc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue