From owner-svn-ports-all@freebsd.org Sun Dec 31 09:06:14 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0B07EABD86; Sun, 31 Dec 2017 09:06:14 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C089B69EE1; Sun, 31 Dec 2017 09:06:14 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id F3CB425E4; Sun, 31 Dec 2017 09:06:13 +0000 (UTC) From: Jan Beich To: Alexey Dokuchaev Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r457632 - in head/lang/guile2: . files References: <201712301912.vBUJCdtc086342@repo.freebsd.org> <1sjc-ylsz-wny@FreeBSD.org> <20171231084028.GA98479@FreeBSD.org> Date: Sun, 31 Dec 2017 10:06:06 +0100 In-Reply-To: <20171231084028.GA98479@FreeBSD.org> (Alexey Dokuchaev's message of "Sun, 31 Dec 2017 08:40:28 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2017 09:06:15 -0000 Alexey Dokuchaev writes: > On Sat, Dec 30, 2017 at 09:59:08PM +0100, Jan Beich wrote: > >> Alexey Dokuchaev writes: >> >> > ++/* With old GCC, do not override _Static_assert: it conflicts with >> > ++ #include below. */ >> > ++#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6) >> >> - GCC check for minor version rejects 5.4, 6.4, 7.2 >> - Clang check needs defined() to pacify -Wundef with GCC >> >> libguile/numbers.c:50:5: warning: "__clang__" is not defined, evaluates >> to 0 [-Wundef] >> #if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 6) >> ^~~~~~~~~ > > How about this: > > #if defined(__clang__) || (__GNUC__ * 10 + __GNUC_MINOR__ >= 46) > ... ? Looks OK. None of lang/gcc* ports have __GNUC_MINOR__ >= 10.