From owner-freebsd-current@FreeBSD.ORG Wed May 20 07:09:21 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42A517CF for ; Wed, 20 May 2015 07:09:21 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0CCF41963 for ; Wed, 20 May 2015 07:09:21 +0000 (UTC) Received: by igcau1 with SMTP id au1so32808715igc.1 for ; Wed, 20 May 2015 00:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=kq+TTI3UGywxd9YviK1SFtATbSdyCL4v8U2Er0Z56Z0=; b=Uk+GSxfGu1/wMO214mD+3AjAYHKb7FcYyvUJwOJtPkljeqVHeieEttvzMKoyWvAepy SDCkvz+DN8cmdN3zFO0TajpfwEnKXD+LsdCSLNRh8EDfv9mR0IKmol42fgVEJb78kHo8 Mfi7Ax8a8iCwX1XehE75yhD7BeUQQJD+qE2X4VVhcWkuGYegwnGwaUsuoKo6EM+FLv89 GYNcWk+Lrn1Fm6jW+fp5kRudwNWtLCzBswEBblX49vc5o7mV79BVHI+mSkP1+TJkqxSx Ct/FgqYw2ZBJalb8+y1Z98ZxAbvRVUYF5zzv8le/IlyFPd0OldhB3v0zkNjt15yHHCNo AwUw== MIME-Version: 1.0 X-Received: by 10.107.155.81 with SMTP id d78mr41012305ioe.29.1432105760432; Wed, 20 May 2015 00:09:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 20 May 2015 00:09:20 -0700 (PDT) Date: Wed, 20 May 2015 00:09:20 -0700 X-Google-Sender-Auth: -9ucdLJc_9UVKWWALVvTbQtkrMY Message-ID: Subject: libiconv: compile error with gcc-4.9 From: Adrian Chadd To: freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 07:09:21 -0000 Hi, I have the following compile error with gcc-4.9. Is there an issue with the macro/inline, or is it just dead code? --- citrus_prop.So --- /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded/obj-gcc/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded/obj-gcc/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded/obj-gcc/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp -B/usr/local/mips-freebsd/bin/ -fpic -DPIC -O -pipe -G0 -march=mips32 -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../../include -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../../contrib/gdtoa -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../../contrib/libc-vis -DINET6 -I/home/adrian/work/freebsd/head-embedded/obj-gcc/mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../libmd -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../../contrib/jemalloc/include -DMALLOC_PRODUCTION -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/stdtime -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/rpc -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/mips/softfloat -I/usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c -o citrus_prop.So /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c: In function '_citrus_prop_read_chr': /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c:112:16: error: variable 'neg' set but not used [-Werror=unused-but-set-variable] int base, ch, neg; \ ^ /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c:142:1: note: in expansion of macro '_CITRUS_PROP_READ_INT' _CITRUS_PROP_READ_INT(chr, int) ^ /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c: In function '_citrus_prop_read_num': /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c:112:16: error: variable 'neg' set but not used [-Werror=unused-but-set-variable] int base, ch, neg; \ ^ /usr/home/adrian/work/freebsd/head-embedded/src/lib/libc/iconv/citrus_prop.c:143:1: note: in expansion of macro '_CITRUS_PROP_READ_INT' _CITRUS_PROP_READ_INT(num, uint64_t) ^ Thanks, -adrian