From 83cd5a9750075c00f0b108d5264c03437fb1e19d Mon Sep 17 00:00:00 2001 From: night0721 Date: Mon, 4 Nov 2024 23:46:43 +0000 Subject: [PATCH] Resolve compiler warnings and udpate CFLAGS --- Makefile | 2 +- ssm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fc21cd0..10e21ac 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ BINDIR = $(PREFIX)/bin LDFLAGS != pkg-config --libs libnotify INCFLAGS != pkg-config --cflags libnotify -CFLAGS = -O3 -march=native -mtune=native -pipe -s -std=c99 -flto -pedantic -Wall $(INCFLAGS) +CFLAGS = -Os -march=native -mtune=native -pipe -s -std=c99 -flto -pedantic -Wall $(INCFLAGS) SRC = ssm.c diff --git a/ssm.c b/ssm.c index 353b855..85aa84a 100644 --- a/ssm.c +++ b/ssm.c @@ -24,7 +24,7 @@ typedef struct { } event; char * -get_database_path() +get_database_path(void) { char *db = DATABASE_PATH; char *db_path;