Changeset 656 in openpam


Ignore:
Timestamp:
Mar 6, 2013, 10:58:45 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add a macro for marking a variable or function argument as unused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/openpam_attr.h

    r648 r656  
    33 */
    44
    5 #ifndef SECURITY_PAM_ATTRIBUTES_H_INCLUDED
    6 #define SECURITY_PAM_ATTRIBUTES_H_INCLUDED
     5#ifndef SECURITY_OPENPAM_ATTR_H_INCLUDED
     6#define SECURITY_OPENPAM_ATTR_H_INCLUDED
    77
    88/* GCC attributes */
     
    2626#endif
    2727
    28 #endif /* !SECURITY_PAM_ATTRIBUTES_H_INCLUDED */
     28#if OPENPAM_GNUC_PREREQ(2,7)
     29# define OPENPAM_UNUSED(var) var __attribute__((__unused__))
     30#else
     31# define OPENPAM_UNUSED(var) var
     32#endif
     33
     34#endif /* !SECURITY_OPENPAM_ATTR_H_INCLUDED */
Note: See TracChangeset for help on using the changeset viewer.