Addressing some clang warnings

This commit is contained in:
bakkeby 2024-07-16 21:42:32 +02:00
parent 4a8b71c191
commit af373aa1cc
15 changed files with 18 additions and 19 deletions

View File

@ -1,5 +1,5 @@
static void static void
refreshoptions() refreshoptions(void)
{ {
int dynlen = strlen(dynamic); int dynlen = strlen(dynamic);
char* cmd= malloc(dynlen + strlen(text) + 2); char* cmd= malloc(dynlen + strlen(text) + 2);

View File

@ -1,2 +1,2 @@
static void refreshoptions(); static void refreshoptions(void);
static void readstream(FILE* stream); static void readstream(FILE* stream);

View File

@ -1,2 +1 @@
static int arrayhas(char **list, int length, char *item); static int arrayhas(char **list, int length, char *item);

View File

@ -32,7 +32,7 @@ printsel(unsigned int state)
} }
static void static void
selsel() selsel(void)
{ {
if (!sel) if (!sel)
return; return;

View File

@ -1,7 +1,7 @@
static char numbers[NUMBERSBUFSIZE] = ""; static char numbers[NUMBERSBUFSIZE] = "";
static void static void
recalculatenumbers() recalculatenumbers(void)
{ {
unsigned int numer = 0, denom = 0; unsigned int numer = 0, denom = 0;
struct item *item; struct item *item;

View File

@ -1,4 +1,4 @@
#define NUMBERSMAXDIGITS 100 #define NUMBERSMAXDIGITS 100
#define NUMBERSBUFSIZE (NUMBERSMAXDIGITS * 2) + 1 #define NUMBERSBUFSIZE (NUMBERSMAXDIGITS * 2) + 1
static void recalculatenumbers(); static void recalculatenumbers(void);