summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2016-12-20 19:25:32 +0100
committerAndreas Rammhold <andreas@rammhold.de>2016-12-20 19:30:14 +0100
commit47e958b753fc15098a2b7d0e9ef26b83ee255874 (patch)
tree0d3c93465d6ef7a9a1869e3548ef4b1303418711 /src/Makefile
parent1d5976d1ab7e93b91d7582d2b9a65e296967fbcd (diff)
downloadlibfaketime-47e958b753fc15098a2b7d0e9ef26b83ee255874.tar.gz
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.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
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