From c06188c05c03bd518ca2d6ae77fdc25cb8d16195 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Apr 2005 14:19:49 +0000 Subject: (__attribute__, ATTRIBUTE_UNUSED): Define. Mark parameter `sp' with ATTRIBUTE_UNUSED. --- lib/fts.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/fts.c b/lib/fts.c index fe7159ebf..c4f704dcb 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -142,6 +142,16 @@ int rpl_lstat (const char *, struct stat *); # define __set_errno(Val) errno = (Val) #endif +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ +# define __attribute__(x) /* empty */ +# endif +#endif + +#ifndef ATTRIBUTE_UNUSED +# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +#endif + static FTSENT *fts_alloc __P((FTS *, const char *, size_t)) internal_function; static FTSENT *fts_build __P((FTS *, int)) internal_function; @@ -746,10 +756,7 @@ name: t = sp->fts_path + NAPPEND(p->fts_parent); */ /* ARGSUSED */ int -fts_set(sp, p, instr) - FTS *sp; - FTSENT *p; - int instr; +fts_set(FTS *sp ATTRIBUTE_UNUSED, FTSENT *p, int instr) { if (instr != 0 && instr != FTS_AGAIN && instr != FTS_FOLLOW && instr != FTS_NOINSTR && instr != FTS_SKIP) { -- cgit v1.2.3-70-g09d2