From 9133649a8a8a1bb08c9d76fac717fecb0d4568af Mon Sep 17 00:00:00 2001 From: night0721 Date: Mon, 4 Nov 2024 23:47:52 +0000 Subject: [PATCH] Resolve compiler warnings and udpate CFLAGS --- Makefile | 2 +- log.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5bdacd0..1ab5b5d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ PREFIX ?= /usr/local BINDIR = $(PREFIX)/bin 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 diff --git a/log.c b/log.c index 88f28cd..af5c761 100644 --- a/log.c +++ b/log.c @@ -12,7 +12,7 @@ #include "config.h" -char *get_log_dir() { +char *get_log_dir(void) { char *xdg_data_home = getenv("XDG_DATA_HOME"); char *dirname = "log"; char *log_dir = NULL;