From 47e958b753fc15098a2b7d0e9ef26b83ee255874 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Tue, 20 Dec 2016 19:25:32 +0100 Subject: [PATCH] Disable the non-null compare warning/error. We rely on the provided local library definitions for the hooked functions which in some cases (GCC >6) carry a non-null-attribute flag which causes compile errors on `!= NULL` checks. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index e405d5a..a557c38 100644 --- a/src/Makefile +++ b/src/Makefile @@ -62,7 +62,7 @@ PREFIX ?= /usr/local LIBDIRNAME ?= /lib/faketime PLATFORM ?=$(shell uname) -CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"' +CFLAGS += -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"' ifeq ($(PLATFORM),SunOS) CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 endif