vmac.c : Fix a warning that 'device_id' is not used (#510)

This commit is contained in:
Jonathan
2023-10-12 15:53:40 +02:00
committed by GitHub
parent 4188f88694
commit e945c948d1
+7
View File
@@ -54,7 +54,11 @@ static bool VMAC_Debug = false;
}
#else
#define PRINTF(...)
#if !defined UNUSED
#define UNUSED(x) ((void)(x))
#endif
#endif // PRINT_ENABLED
/**
* @brief Enable debugging if print is enabled
@@ -263,6 +267,9 @@ void VMAC_Cleanup(void)
if (VMAC_List) {
do {
device_id = Keylist_Key(VMAC_List, index);
#if !PRINT_ENABLED
UNUSED(device_id);
#endif
pVMAC = Keylist_Data_Delete_By_Index(VMAC_List, index);
if (pVMAC) {
PRINTF("VMAC List: %lu [", (unsigned long)device_id);