Resolve compiler warnings and udpate CFLAGS
This commit is contained in:
parent
8b60efea3c
commit
9133649a8a
2 changed files with 2 additions and 2 deletions
2
Makefile
2
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
|
||||
|
||||
|
|
2
log.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue