From b79154a51b40c502960f9fe3fc004f824de1502b Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 15 Mar 2011 13:24:08 +1100 Subject: [PATCH] Fix unused parameter warning when building mech_eap --- src/eap_peer/eap_methods.h | 4 ++-- src/utils/common.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eap_peer/eap_methods.h b/src/eap_peer/eap_methods.h index 57302b2..8045a4d 100644 --- a/src/eap_peer/eap_methods.h +++ b/src/eap_peer/eap_methods.h @@ -80,12 +80,12 @@ int eap_peer_method_unload(struct eap_method *method); #else /* CONFIG_DYNAMIC_EAP_METHODS */ -static inline int eap_peer_method_load(const char *so) +static inline int eap_peer_method_load(const char *so UNUSED) { return 0; } -static inline int eap_peer_method_unload(struct eap_method *method) +static inline int eap_peer_method_unload(struct eap_method *method UNUSED) { return 0; } diff --git a/src/utils/common.h b/src/utils/common.h index f17bf69..96ff59c 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -337,9 +337,11 @@ static inline unsigned int wpa_swap_32(unsigned int v) #ifdef __GNUC__ #define PRINTF_FORMAT(a,b) __attribute__ ((format (printf, (a), (b)))) #define STRUCT_PACKED __attribute__ ((packed)) +#define UNUSED __attribute__ ((unused)) #else #define PRINTF_FORMAT(a,b) #define STRUCT_PACKED +#define UNUSED #endif -- 2.1.4