Suppress the warnings when building with GCC11 (#1622)
Add pragma to ignore "-Waddress-of-packed-member" Adds `void` parameter to the prototype of some functions to make them have strict declarations
This commit is contained in:
@ -141,7 +141,7 @@ bh_hash_map_get_struct_size(HashMap *hashmap);
|
||||
* @return the memory space occupied by HashMapElem structure
|
||||
*/
|
||||
uint32
|
||||
bh_hash_map_get_elem_struct_size();
|
||||
bh_hash_map_get_elem_struct_size(void);
|
||||
|
||||
/**
|
||||
* Traverse the hash map and call the callback function
|
||||
|
||||
@ -40,7 +40,7 @@ typedef void (*bh_queue_handle_msg_callback)(void *message, void *arg);
|
||||
typedef void (*bh_msg_cleaner)(void *msg);
|
||||
|
||||
bh_queue *
|
||||
bh_queue_create();
|
||||
bh_queue_create(void);
|
||||
|
||||
void
|
||||
bh_queue_destroy(bh_queue *queue);
|
||||
|
||||
@ -13,7 +13,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
uint64
|
||||
bh_get_tick_ms();
|
||||
bh_get_tick_ms(void);
|
||||
uint32
|
||||
bh_get_elpased_ms(uint32 *last_system_clock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user