Date: Sun, 24 Dec 2017 19:17:16 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327167 - head/sys/cddl/contrib/opensolaris/uts/common/sys Message-ID: <201712241917.vBOJHG9r039296@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sun Dec 24 19:17:15 2017 New Revision: 327167 URL: https://svnweb.freebsd.org/changeset/base/327167 Log: 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 Modified: head/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h Modified: head/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h Sun Dec 24 17:59:48 2017 (r327166) +++ head/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h Sun Dec 24 19:17:15 2017 (r327167) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712241917.vBOJHG9r039296>