vmac.c : Fix a warning that 'device_id' is not used (#510)
This commit is contained in:
@@ -54,7 +54,11 @@ static bool VMAC_Debug = false;
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define PRINTF(...)
|
#define PRINTF(...)
|
||||||
|
|
||||||
|
#if !defined UNUSED
|
||||||
|
#define UNUSED(x) ((void)(x))
|
||||||
#endif
|
#endif
|
||||||
|
#endif // PRINT_ENABLED
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enable debugging if print is enabled
|
* @brief Enable debugging if print is enabled
|
||||||
@@ -263,6 +267,9 @@ void VMAC_Cleanup(void)
|
|||||||
if (VMAC_List) {
|
if (VMAC_List) {
|
||||||
do {
|
do {
|
||||||
device_id = Keylist_Key(VMAC_List, index);
|
device_id = Keylist_Key(VMAC_List, index);
|
||||||
|
#if !PRINT_ENABLED
|
||||||
|
UNUSED(device_id);
|
||||||
|
#endif
|
||||||
pVMAC = Keylist_Data_Delete_By_Index(VMAC_List, index);
|
pVMAC = Keylist_Data_Delete_By_Index(VMAC_List, index);
|
||||||
if (pVMAC) {
|
if (pVMAC) {
|
||||||
PRINTF("VMAC List: %lu [", (unsigned long)device_id);
|
PRINTF("VMAC List: %lu [", (unsigned long)device_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user