D7562: fuzz: suppress deprecated-register warnings in our compile

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Dec 6 15:51:10 EST 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  These come from the Python.h headers still using the `register`
  keyword and our use of C++17. I think this will go away when we're
  using Python 3 for our fuzzing, but that can come later.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7562

AFFECTED FILES
  contrib/fuzz/Makefile

CHANGE DETAILS

diff --git a/contrib/fuzz/Makefile b/contrib/fuzz/Makefile
--- a/contrib/fuzz/Makefile
+++ b/contrib/fuzz/Makefile
@@ -3,6 +3,8 @@
 
 LIB_FUZZING_ENGINE ?= -lFuzzingEngine
 
+CXXFLAGS += -Wno-deprecated-register
+
 all: bdiff mpatch xdiff
 
 pyutil.o: pyutil.cc pyutil.h



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list