Resolve -Wstrict-prototypes warnings with clang-15
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
This commit is contained in:
parent
4dd285fad7
commit
6c4010e442
15 changed files with 34 additions and 34 deletions
|
|
@ -48,7 +48,7 @@ static int pools_initialized = 0;
|
|||
* CreatePool() - Create a new memory pool
|
||||
* ---------------------------------------------------------------------- */
|
||||
|
||||
static void CreatePool() {
|
||||
static void CreatePool(void) {
|
||||
Pool *p = 0;
|
||||
p = (Pool *) DohMalloc(sizeof(Pool));
|
||||
p->ptr = (DohBase *) DohCalloc(PoolSize, sizeof(DohBase));
|
||||
|
|
@ -65,7 +65,7 @@ static void CreatePool() {
|
|||
* InitPools() - Initialize the memory allocator
|
||||
* ---------------------------------------------------------------------- */
|
||||
|
||||
static void InitPools() {
|
||||
static void InitPools(void) {
|
||||
if (pools_initialized)
|
||||
return;
|
||||
CreatePool(); /* Create initial pool */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue