Added rules to supress CRYPTOPP_NO_UNALIGNED_DATA_ACCESS warning
parent
c23c02171d
commit
f36dc3d643
|
|
@ -337,11 +337,17 @@ DLLTESTOBJS = dlltest.dllonly.o
|
||||||
#################################################################
|
#################################################################
|
||||||
# Public service announcement
|
# Public service announcement
|
||||||
|
|
||||||
ALIGNED_ACCESS = $(shell cat config.h | $(EGREP) -c "^\#define CRYPTOPP_NO_UNALIGNED_DATA_ACCESS")
|
# Do not warn for some targets
|
||||||
ifeq ($(ALIGNED_ACCESS),0)
|
NO_WARN = GNUmakefile.deps dist install install-strip uninstall remove clean distclean
|
||||||
|
ifeq ($(findstring $(MAKECMDGOALS),$(NO_WARN)),)
|
||||||
|
|
||||||
|
UNALIGNED_ACCESS = $(shell $(EGREP) -c "^// \#define CRYPTOPP_NO_UNALIGNED_DATA_ACCESS" config.h)
|
||||||
|
ifneq ($(UNALIGNED_ACCESS),0)
|
||||||
$(info WARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h)
|
$(info WARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif # NO_WARN
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
# Recipes
|
# Recipes
|
||||||
|
|
||||||
|
|
@ -478,7 +484,7 @@ ifeq ($(MULTIARCH),0)
|
||||||
-include GNUmakefile.deps
|
-include GNUmakefile.deps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GNUmakefile.deps:
|
deps GNUmakefile.deps:
|
||||||
$(CXX) $(CXXFLAGS) -MM *.cpp > GNUmakefile.deps
|
$(CXX) $(CXXFLAGS) -MM *.cpp > GNUmakefile.deps
|
||||||
|
|
||||||
endif # NO_DEPS
|
endif # NO_DEPS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue