aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-24 19:17:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-24 19:17:15 +0000
commite42df78a1a62da6b168cf192b6dc552b9eccc707 (patch)
treec364eb30a9de59d4daaf61b058cbd88ef472cc79 /sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
parented98ce5cad6e61b4d07a26a8634bb8a53daf5681 (diff)
downloadsrc-e42df78a1a62da6b168cf192b6dc552b9eccc707.tar.gz
src-e42df78a1a62da6b168cf192b6dc552b9eccc707.zip
Remove obsolete register keyword from opensolaris's sysmacros.h. When
compiling zfsd with recent clang, it leads to a warning about the register storage class being incompatible with C++17. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=327167
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h b/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
index aa84f361d68d..ee6e55214ec7 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
+++ b/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
@@ -388,7 +388,7 @@ highbit(ulong_t i)
#if defined(__FreeBSD__) && defined(_KERNEL) && defined(HAVE_INLINE_FLSL)
return (flsl(i));
#else
- register int h = 1;
+ int h = 1;
if (i == 0)
return (0);