Disable C++ warnings from dlib library. (#11738)
vkalintiris committed
Nov 3, 2021 at 09:20 UTC
d101b9b7f6d5e0742d453d3ff976b4b2be1d73e0
1 file changed
+6
Makefile.am
+6
@@ -241,6 +241,7 @@ ML_FILES = \
241
$(NULL)
242
243
if ENABLE_ML
244
+
245
ML_FILES += \
246
ml/BitBufferCounter.h \
247
ml/BitBufferCounter.cc \
@@ -264,8 +265,13 @@ ML_FILES += \
265
ml/ml.cc \
266
ml/ml-private.h \
267
$(NULL)
268
+
269
+# Disable warnings from dlib library
270
+ml/kmeans/dlib/dlib/all/source.$(OBJEXT) : CXXFLAGS += -Wno-sign-compare -Wno-type-limits
271
+
272
endif
273
274
+
275
if ENABLE_ML_TESTS
276
ML_TESTS_FILES = \
277
ml/kmeans/Tests.cc \