brotli/shared.mk
Piotr Sikora 501cb86172 Fix build with -Wmissing-declarations.
While there, add -Wmissing-prototypes and -Wmissing-declarations
to shared.mk in order to catch similar errors in the future.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-03-18 19:18:59 -07:00

14 lines
263 B
Makefile

OS := $(shell uname)
CC ?= gcc
CXX ?= g++
COMMON_FLAGS = -fno-omit-frame-pointer -no-canonical-prefixes -O2
ifeq ($(OS), Darwin)
CPPFLAGS += -DOS_MACOSX
endif
CFLAGS += $(COMMON_FLAGS) -Wmissing-prototypes
CXXFLAGS += $(COMMON_FLAGS) -Wmissing-declarations