From owner-svn-src-all@FreeBSD.ORG Thu Jun 25 19:52:45 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 994B1106566C; Thu, 25 Jun 2009 19:52:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8769D8FC08; Thu, 25 Jun 2009 19:52:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5PJqjLj063025; Thu, 25 Jun 2009 19:52:45 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5PJqj6K063023; Thu, 25 Jun 2009 19:52:45 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <200906251952.n5PJqj6K063023@svn.freebsd.org> From: Doug Barton Date: Thu, 25 Jun 2009 19:52:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195000 - head/contrib/bind9/lib/isc/ia64/include/isc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 19:52:46 -0000 Author: dougb Date: Thu Jun 25 19:52:45 2009 New Revision: 195000 URL: http://svn.freebsd.org/changeset/base/195000 Log: This is the solution that ISC committed after 9.6.1-release for the gcc warning issue. It should be included in the next upstream release. Modified: head/contrib/bind9/lib/isc/ia64/include/isc/atomic.h Modified: head/contrib/bind9/lib/isc/ia64/include/isc/atomic.h ============================================================================== --- head/contrib/bind9/lib/isc/ia64/include/isc/atomic.h Thu Jun 25 19:39:16 2009 (r194999) +++ head/contrib/bind9/lib/isc/ia64/include/isc/atomic.h Thu Jun 25 19:52:45 2009 (r195000) @@ -31,6 +31,9 @@ * (e.g., 1 and -1)? */ static inline isc_int32_t +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) { isc_int32_t prev, swapped; @@ -54,6 +57,9 @@ isc_atomic_xadd(isc_int32_t *p, isc_int3 * This routine atomically stores the value 'val' in 'p'. */ static inline void +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_store(isc_int32_t *p, isc_int32_t val) { __asm__ volatile( @@ -70,6 +76,9 @@ isc_atomic_store(isc_int32_t *p, isc_int * case. */ static inline isc_int32_t +#ifdef __GNUC__ +__attribute__ ((unused)) +#endif isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { isc_int32_t ret;