From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 10 11:30:02 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 124F7823; Sun, 10 Feb 2013 11:30:02 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id CC8DE7D6; Sun, 10 Feb 2013 11:30:01 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:204:4bff:fe01:de8a] (spaceball.andric.com [IPv6:2001:7b8:3a7:0:204:4bff:fe01:de8a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A22B05C43; Sun, 10 Feb 2013 12:29:53 +0100 (CET) Message-ID: <511784B0.4060806@FreeBSD.org> Date: Sun, 10 Feb 2013 12:29:52 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20130117 Thunderbird/19.0 MIME-Version: 1.0 To: sbruno@freebsd.org, "freebsd-hackers@freebsd.org" Subject: Re: Eliminating a warning in sys/boot References: <1360455011.4618.8.camel@powernoodle> In-Reply-To: <1360455011.4618.8.camel@powernoodle> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 11:30:02 -0000 On 2013-02-10 01:10, Sean Bruno wrote:> So, this is not a valid warning in our universe and I'd like to silence > it when compiling sys/boot as printf(9) and sprintf(9) supports this > format. How can we silence this warning for the FreeBSD universe? > > ===> efi/libefi (all) > In file included from efinet.c:39: > /home/sbruno/fbsd_head/sys/boot/efi/libefi/../../common/dev_net.c:328:19: warning: invalid conversion specifier 'D' > [-Wformat-invalid-specifier] > sprintf(temp, "%6D", d->myea, ":"); Either eliminate the non-standard printf format specifier, or use the -fformat-extensions flag while compiling.