From c00a48bbad010868c86a1f17c2ac78002f0e945b Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 7 Feb 2019 17:50:12 -0500 Subject: SERVER-39352 Ignore use of `register` keyword in ICU on FreeBSD --- src/third_party/icu4c-57.1/source/SConscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/third_party') diff --git a/src/third_party/icu4c-57.1/source/SConscript b/src/third_party/icu4c-57.1/source/SConscript index 2da0fba6e83..4486c01cc5b 100644 --- a/src/third_party/icu4c-57.1/source/SConscript +++ b/src/third_party/icu4c-57.1/source/SConscript @@ -51,6 +51,13 @@ if env.TargetOSIs('windows'): # C4996: '...': was declared deprecated env.Append(CCFLAGS=['/wd4996']) + +# Suppress `register` keyword warnings in FreeBSD builds + +if env.TargetOSIs('freebsd'): + env.Append(CCFLAGS=['-Wno-error=register']) + env.Append(CCFLAGS=['-Wno-register']) + i18nEnv = env.Clone() i18nEnv.Append( CPPDEFINES=[ -- cgit v1.2.1