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
refreshoptions()
refreshoptions(void)
{
int dynlen = strlen(dynamic);
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);

View File

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

View File

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

View File

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

View File

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