Skip to content
Snippets Groups Projects
Commit 3e8b6f28 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve new GCC warnings introduced with addition of new_item()

Just make the list argument a void* and assign to a void** local
var inside the function. No functional changes.

Fixes issue #621
parent 72d7a490
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4690 passed
......@@ -2436,8 +2436,9 @@ int lprintf(int level, char *fmt, ...)
return(0);
}
void** new_item(void* list[], size_t size, int index, int* total)
void* new_item(void* lp, size_t size, int index, int* total)
{
void** list = lp;
void** p;
void* item;
......
......@@ -163,7 +163,7 @@ void reencrypt_keys(const char* old_pass, const char* new_pass);
int code_ok(char *str);
int bits(long l);
void getar(char *desc, char *ar);
void** new_item(void* list[], size_t size, int index, int* total);
void* new_item(void* list, size_t size, int index, int* total);
bool new_sub(int new_subnum, int group_num, sub_t* pasted_sub, long misc);
bool new_qhub_sub(qhub_t*, int qsubnum, sub_t*, unsigned confnum);
void remove_sub(scfg_t*, int subnum, bool cut);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment