From 68a4d7a514578f1360559c84ac08e3a1e2719826 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Feb 2019 06:09:53 -0500 Subject: add -Werror, fix clang warning --- Makefile | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d23f364..b3ee253 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ APP=km-test -CFLAGS=-W -Wall -Wextra -pedantic -std=c11 -O2 +CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O2 OBJS=km-set.o km-draw.o km-load.o km-find.o km-rand.o km-solve.o main.o LIBS=-lm diff --git a/main.c b/main.c index e81475d..ec62022 100644 --- a/main.c +++ b/main.c @@ -67,7 +67,7 @@ load_on_error( void * const cb_data ) { UNUSED(cb_data); - die(err); + die("load failed: %s", err); } static const km_load_cbs_t -- cgit v1.2.3