mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
fix unused parmeters warnings in btstack_memory
This commit is contained in:
parent
3ad83cc639
commit
6f7ecb09e3
@ -39,7 +39,7 @@
|
||||
*
|
||||
* @brief BTstack memory management via configurable memory pools
|
||||
*
|
||||
* @note code semi-atuomatically generated by btstack_memory_generator.py
|
||||
* @note code semi-atuomatically generated by tools/btstack_memory_generator.py
|
||||
*
|
||||
*/
|
||||
|
||||
@ -69,6 +69,8 @@ hci_connection_t * btstack_memory_hci_connection_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_hci_connection_free(hci_connection_t *hci_connection){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
hci_connection;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -99,6 +101,8 @@ l2cap_service_t * btstack_memory_l2cap_service_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_l2cap_service_free(l2cap_service_t *l2cap_service){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) l2cap_service;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -129,6 +133,8 @@ l2cap_channel_t * btstack_memory_l2cap_channel_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_l2cap_channel_free(l2cap_channel_t *l2cap_channel){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) l2cap_channel;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -159,6 +165,8 @@ rfcomm_multiplexer_t * btstack_memory_rfcomm_multiplexer_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_rfcomm_multiplexer_free(rfcomm_multiplexer_t *rfcomm_multiplexer){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) rfcomm_multiplexer;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -189,6 +197,8 @@ rfcomm_service_t * btstack_memory_rfcomm_service_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_rfcomm_service_free(rfcomm_service_t *rfcomm_service){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) rfcomm_service;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -219,6 +229,8 @@ rfcomm_channel_t * btstack_memory_rfcomm_channel_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_rfcomm_channel_free(rfcomm_channel_t *rfcomm_channel){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) rfcomm_channel;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -248,7 +260,9 @@ void btstack_memory_db_mem_device_name_free(db_mem_device_name_t *db_mem_device_
|
||||
db_mem_device_name_t * btstack_memory_db_mem_device_name_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_db_mem_device_name_free(db_mem_device_name_t *db_mem_device_name){
|
||||
void btstack_memory_db_mem_device_name_free(db_mem_device_name_t * db_mem_device_name){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) db_mem_device_name;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -279,6 +293,8 @@ db_mem_device_link_key_t * btstack_memory_db_mem_device_link_key_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_db_mem_device_link_key_free(db_mem_device_link_key_t *db_mem_device_link_key){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) db_mem_device_link_key;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -309,6 +325,8 @@ db_mem_service_t * btstack_memory_db_mem_service_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_db_mem_service_free(db_mem_service_t *db_mem_service){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) db_mem_service;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
@ -339,6 +357,8 @@ gatt_client_t * btstack_memory_gatt_client_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_gatt_client_free(gatt_client_t *gatt_client){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) gatt_client;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
|
@ -20,6 +20,8 @@ STRUCT_NAME_t * btstack_memory_STRUCT_NAME_get(void){
|
||||
return NULL;
|
||||
}
|
||||
void btstack_memory_STRUCT_NAME_free(STRUCT_NAME_t *STRUCT_NAME){
|
||||
// silence compiler warning about unused parameter in a portable way
|
||||
(void) STRUCT_NAME;
|
||||
};
|
||||
#endif
|
||||
#elif defined(HAVE_MALLOC)
|
||||
|
Loading…
Reference in New Issue
Block a user