diff --git a/include/security/openpam_attr.h b/include/security/openpam_attr.h index d686309..d632180 100644 --- a/include/security/openpam_attr.h +++ b/include/security/openpam_attr.h @@ -2,8 +2,8 @@ * $Id$ */ -#ifndef SECURITY_PAM_ATTRIBUTES_H_INCLUDED -#define SECURITY_PAM_ATTRIBUTES_H_INCLUDED +#ifndef SECURITY_OPENPAM_ATTR_H_INCLUDED +#define SECURITY_OPENPAM_ATTR_H_INCLUDED /* GCC attributes */ #if defined(__GNUC__) && defined(__GNUC_MINOR__) && !defined(__STRICT_ANSI__) @@ -25,4 +25,10 @@ # define OPENPAM_NONNULL(params) #endif -#endif /* !SECURITY_PAM_ATTRIBUTES_H_INCLUDED */ +#if OPENPAM_GNUC_PREREQ(2,7) +# define OPENPAM_UNUSED(var) var __attribute__((__unused__)) +#else +# define OPENPAM_UNUSED(var) var +#endif + +#endif /* !SECURITY_OPENPAM_ATTR_H_INCLUDED */