diff options
author | Brett Holman <bpholman5@gmail.com> | 2021-05-19 21:07:47 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-05-19 23:26:13 -0400 |
commit | 9c0dc7b8d42e380e15822cc00d70958f8f10e0f3 (patch) | |
tree | 6e650c081c1e80c8b442755278711a409ed81a17 /Makefile | |
parent | 2e2d5a3f7ed4f6d4e2a45011a82386ba82cd3976 (diff) |
minor fixes for clang support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,12 +1,9 @@ - PREFIX?=/usr/local PKG_CONFIG?=pkg-config INSTALL=install PYTEST=pytest-3 CFLAGS+=-std=gnu89 -O2 -g -MMD -Wall \ -Wno-pointer-sign \ - -Wno-zero-length-bounds \ - -Wno-stringop-overflow \ -fno-strict-aliasing \ -fno-delete-null-pointer-checks \ -I. -Iinclude -Iraid \ @@ -28,11 +25,16 @@ VERSION?=$(shell git describe --dirty=+ 2>/dev/null || echo v0.1-nogit) CC_VERSION=$(shell $(CC) -v 2>&1|grep -E '(gcc|clang) version') ifneq (,$(findstring gcc,$(CC_VERSION))) - CFLAGS+=-Wno-unused-but-set-variable + CFLAGS+=-Wno-unused-but-set-variable \ + -Wno-zero-length-bounds \ + -Wno-stringop-overflow endif ifneq (,$(findstring clang,$(CC_VERSION))) - CFLAGS+=-Wno-missing-braces + CFLAGS+=-Wno-missing-braces \ + -Wno-zero-length-array \ + -Wno-shift-overflow \ + -Wno-enum-conversion endif ifdef D |