mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
include: Rename __unused__ to __attr_unused__
This avoids a collision with valgrind.h Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -405,20 +405,20 @@ void explicit_bzero(void *s, size_t n);
|
|||||||
# endif /* HAVE_FALLTHROUGH_ATTRIBUTE */
|
# endif /* HAVE_FALLTHROUGH_ATTRIBUTE */
|
||||||
#endif /* FALL_THROUGH */
|
#endif /* FALL_THROUGH */
|
||||||
|
|
||||||
#ifndef __unused__
|
#ifndef __attr_unused__
|
||||||
# ifdef HAVE_UNUSED_ATTRIBUTE
|
# ifdef HAVE_UNUSED_ATTRIBUTE
|
||||||
# define __unused__ __attribute__((unused))
|
# define __attr_unused__ __attribute__((unused))
|
||||||
# else /* HAVE_UNUSED_ATTRIBUTE */
|
# else /* HAVE_UNUSED_ATTRIBUTE */
|
||||||
# define __unused__
|
# define __attr_unused__
|
||||||
# endif /* HAVE_UNUSED_ATTRIBUTE */
|
# endif /* HAVE_UNUSED_ATTRIBUTE */
|
||||||
#endif /* __unused__ */
|
#endif /* __attr_unused__ */
|
||||||
|
|
||||||
#ifndef UNUSED_PARAM
|
#ifndef UNUSED_PARAM
|
||||||
#define UNUSED_PARAM(param) param __unused__
|
#define UNUSED_PARAM(param) param __attr_unused__
|
||||||
#endif /* UNUSED_PARAM */
|
#endif /* UNUSED_PARAM */
|
||||||
|
|
||||||
#ifndef UNUSED_VAR
|
#ifndef UNUSED_VAR
|
||||||
#define UNUSED_VAR(var) __unused__ var
|
#define UNUSED_VAR(var) __attr_unused__ var
|
||||||
#endif /* UNUSED_VAR */
|
#endif /* UNUSED_VAR */
|
||||||
|
|
||||||
void ssh_agent_state_free(void *data);
|
void ssh_agent_state_free(void *data);
|
||||||
|
|||||||
Reference in New Issue
Block a user