fix: fix extra warnings

This commit is contained in:
thetek 2023-04-30 13:41:00 +02:00
parent 0178df85bd
commit e956ca0500
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ fs_read_to_str (const char *path)
if (path && (fp = fopen (path, "r"))) {
fseek (fp, 0, SEEK_END);
len = ftell (fp);
len = (usize) ftell (fp);
fseek (fp, 0, SEEK_SET);
buf = smalloc (len + 1);

View File

@ -68,7 +68,7 @@
{ \
usize i; \
for (i = 0; i < n; i++) \
a[i] = a[i] * b[i] + c[i]; \
a[i] = (TYPE) (a[i] * b[i]) + c[i]; \
}
IMPLEMENT_FUNCTIONS(IMPL_VEC_ADD)

View File

@ -1,5 +1,5 @@
CC := gcc
CFLAGS := -Wall -Wextra -Werror=implicit -pedantic -Og -g -Ilib/inc
CFLAGS := -Wall -Wextra -Werror=implicit -Wconversion -Wdouble-promotion -pedantic -g3 -fsanitize=address -fsanitize=undefined -Ilib/inc
CLIBS := -lm
SRCFILES := $(wildcard lib/*.c)