Skip to content
Snippets Groups Projects
Commit c2176afa 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 96a8347d
No related branches found
No related tags found
No related merge requests found
...@@ -2436,8 +2436,9 @@ int lprintf(int level, char *fmt, ...) ...@@ -2436,8 +2436,9 @@ int lprintf(int level, char *fmt, ...)
return(0); 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** p;
void* item; void* item;
......
...@@ -163,7 +163,7 @@ void reencrypt_keys(const char* old_pass, const char* new_pass); ...@@ -163,7 +163,7 @@ void reencrypt_keys(const char* old_pass, const char* new_pass);
int code_ok(char *str); int code_ok(char *str);
int bits(long l); int bits(long l);
void getar(char *desc, char *ar); 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_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); bool new_qhub_sub(qhub_t*, int qsubnum, sub_t*, unsigned confnum);
void remove_sub(scfg_t*, int subnum, bool cut); 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