Edit

kc3-lang/brotli/shared.mk

Branch :

  • Show log

    Commit

  • Author : Piotr Sikora
    Date : 2016-03-18 19:18:59
    Hash : 501cb861
    Message : 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>

  • shared.mk
  • 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