use strict prototype
h_malloc.c:83:21: error: function declaration isn’t a prototype [-Werror=strict-prototypes] 83 | static inline void *get_slab_region_end() { | ^~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
af866a7faa
commit
7d75acc62a
@ -80,7 +80,7 @@ static union {
|
|||||||
char padding[PAGE_SIZE];
|
char padding[PAGE_SIZE];
|
||||||
} ro __attribute__((aligned(PAGE_SIZE)));
|
} ro __attribute__((aligned(PAGE_SIZE)));
|
||||||
|
|
||||||
static inline void *get_slab_region_end() {
|
static inline void *get_slab_region_end(void) {
|
||||||
return atomic_load_explicit(&ro.slab_region_end, memory_order_acquire);
|
return atomic_load_explicit(&ro.slab_region_end, memory_order_acquire);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user