From owner-svn-src-head@FreeBSD.ORG Sat Mar 1 13:23:53 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28F68F65; Sat, 1 Mar 2014 13:23:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 145B715AC; Sat, 1 Mar 2014 13:23:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s21DNqQu077261; Sat, 1 Mar 2014 13:23:52 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s21DNqoM077260; Sat, 1 Mar 2014 13:23:52 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201403011323.s21DNqoM077260@svn.freebsd.org> From: Tijl Coosemans Date: Sat, 1 Mar 2014 13:23:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262655 - head/lib/libiconv_modules/VIQR X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 13:23:53 -0000 Author: tijl Date: Sat Mar 1 13:23:52 2014 New Revision: 262655 URL: http://svnweb.freebsd.org/changeset/base/262655 Log: Silence the gcc warning about unsigned comparison with 0 in a different way because mnemonic_ext_size isn't a preprocessor macro. MFC after: 3 days Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c ============================================================================== --- head/lib/libiconv_modules/VIQR/citrus_viqr.c Sat Mar 1 13:00:40 2014 (r262654) +++ head/lib/libiconv_modules/VIQR/citrus_viqr.c Sat Mar 1 13:23:52 2014 (r262655) @@ -456,8 +456,8 @@ _citrus_VIQR_encoding_module_init(_VIQRE return (errnum); } } -#if mnemonic_ext_size > 0 - for (i = 0; i < mnemonic_ext_size; ++i) { + /* a + 1 < b + 1 here to silence gcc warning about unsigned < 0. */ + for (i = 0; i + 1 < mnemonic_ext_size + 1; ++i) { const mnemonic_def_t *p; p = &mnemonic_ext[i]; @@ -471,7 +471,6 @@ _citrus_VIQR_encoding_module_init(_VIQRE return (errnum); } } -#endif return (0); }