Makefile: -Wno-unused-parameter for older g++
This commit is contained in:
parent
4516cf06af
commit
21a0b09f37
9
Makefile
9
Makefile
@ -27,8 +27,10 @@ COMMON_FLAGS += -O2 -c \
|
||||
-Wall -Wextra -Werror \
|
||||
-Ikafel/include
|
||||
|
||||
CFLAGS += $(COMMON_FLAGS) -std=gnu11
|
||||
CXXFLAGS += $(COMMON_FLAGS) $(shell pkg-config --cflags protobuf) -std=c++11 -Wno-unused
|
||||
CFLAGS += $(COMMON_FLAGS) \
|
||||
-std=gnu11
|
||||
CXXFLAGS += $(COMMON_FLAGS) $(shell pkg-config --cflags protobuf) \
|
||||
-std=c++11 -Wno-unused -Wno-unused-parameter
|
||||
LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie -Wl,-z,noexecstack -lpthread -lcap $(shell pkg-config --libs protobuf)
|
||||
|
||||
BIN = nsjail
|
||||
@ -111,5 +113,4 @@ user.o: user.h common.h log.h subproc.h util.h
|
||||
util.o: util.h common.h log.h
|
||||
uts.o: uts.h common.h log.h
|
||||
cpu.o: cpu.h common.h log.h util.h
|
||||
config.o: common.h caps.h config.h log.h mount.h user.h util.h config.pb.h
|
||||
config.pb.o: config.pb.h
|
||||
config.o: common.h caps.h config.h log.h mount.h user.h util.h
|
||||
|
Loading…
Reference in New Issue
Block a user