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

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2019, 8:51 p.m.
Message ID <differential-rev-PHID-DREV-luthovpdaovk7wobje3y-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43609/
State Superseded
Headers show

Comments

phabricator - Dec. 6, 2019, 8:51 p.m.
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




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

Patch

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