Resolve compiler warnings and udpate CFLAGS

This commit is contained in:
Night Kaly 2024-11-04 23:47:52 +00:00
parent 8b60efea3c
commit 9133649a8a
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1 MANDIR = $(PREFIX)/share/man/man1
CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall CFLAGS = -Os -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE
SRC = log.c SRC = log.c

2
log.c
View file

@ -12,7 +12,7 @@
#include "config.h" #include "config.h"
char *get_log_dir() { char *get_log_dir(void) {
char *xdg_data_home = getenv("XDG_DATA_HOME"); char *xdg_data_home = getenv("XDG_DATA_HOME");
char *dirname = "log"; char *dirname = "log";
char *log_dir = NULL; char *log_dir = NULL;