From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 25 03:52:39 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A2552C75 for ; Fri, 25 Oct 2013 03:52:39 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm5-vm0.bullet.mail.bf1.yahoo.com (nm5-vm0.bullet.mail.bf1.yahoo.com [98.139.213.150]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 411222775 for ; Fri, 25 Oct 2013 03:52:39 +0000 (UTC) Received: from [98.139.214.32] by nm5.bullet.mail.bf1.yahoo.com with NNFMP; 25 Oct 2013 03:49:19 -0000 Received: from [98.139.213.12] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 25 Oct 2013 03:49:19 -0000 Received: from [127.0.0.1] by smtp112.mail.bf1.yahoo.com with NNFMP; 25 Oct 2013 03:49:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1382672959; bh=iK7knhuabGlu4j+YsN0lgzMjuSO8uLwSqk4L+GqTYeU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=Py04RT55iO5Fos2f4wO5Dt/df9kZXxZ6OWDsX7sQsjLsm2yDR0uE8gnCYTRnqrjh2VpnwI1uXR2f3Q7FheKoB2evaQw6+F0dzQSftk/6l2dGCECZ2Yy4lBjy38LDa8PXjf7iD0Qww/4K/gRVPZlWI6mNSVU3jhYRegrNBlBtOns= X-Yahoo-Newman-Id: 691694.56303.bm@smtp112.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: DDzECDgVM1k50aKgS6jSsPhnT7BGmYrF265yzwq.ejADzWa YHInIPgRPxI_tAcHzA1xeXadc8BiTXw2Hrqkf59Y6aj3OYPWP659xNB5xpOr 8JCw6Uo0wFnfxGshjrD9wiqM5kN1Rx0.TmvM_YN2XXTPsreZN_2Kl9c1Bjn3 j70tYdCqf74pNtzleD2a0oWKlXH5cEt9GZBvZ4zK3b5B4mwac0BCCvBlN_JU SExr5TUOAbIBSPitiiWKDcHL5f_yZAmPLfPyA.GfdLYgUrsNv38z6ZDOHIe7 qgq0KMPlE785RyX_JZWyScVa01TCt0LJcuAtpk3RKPfR3yNBPSg4FEZrrKZX yTgF7sGLNRvj.yZ9TCDJEjZdGkv23dJueEDPqe8mJdz82nDM3pXa9.SNy6i. IrcW_q9GFQeAcHlrMtD86i9IuOoKcPk7dj6B0rRFon4KoG9TuUH2zSGlZIbG fTosZiP75n.gTju36cH1gW7PhhY0LXGQDP3oRFZu1lgxCjbykemb.d.4uUv1 f3.oZ8GshpnTXkgRMlJiK8ElDedNCMG.HoSQwgQFYecRtxIw6r45hMA-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.0.101] (sean_bruno@63.138.121.126 with ) by smtp112.mail.bf1.yahoo.com with SMTP; 24 Oct 2013 20:49:19 -0700 PDT Subject: warning spew from cddl libnvpair.c From: Sean Bruno To: hackers@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-bW3ehibkUSKStlLpZweE" Date: Thu, 24 Oct 2013 23:49:17 -0400 Message-ID: <1382672957.18382.11.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 03:52:39 -0000 --=-bW3ehibkUSKStlLpZweE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable libnvpair.c has some macros and preprocessor directives that make clang's -Wformat-security very unhappy. /home/sbruno/bsd/head/cddl/lib/libnvpair/../../../cddl/contrib/opensolaris/= lib/libnvpair/libnvpair.c:245:1: warning: format string is not a string lit= eral (po tentially insecure) [-Wformat-security] NVLIST_ARRPRTFUNC(byte_array, uchar_t, uchar_t, "0x%2.2x") ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/sbruno/bsd/head/cddl/lib/libnvpair/../../../cddl/contrib/opensolaris/= lib/libnvpair/libnvpair.c:238:23: note: expanded from macro 'NVLIST_ARRPRTF= UNC' (void) fprintf(fp, pctl->nvprt_btwnarrfmt); \ I don't see a real graceful way out of this. Also, this is totally "legit" C, so I don't see any reason to generate these warnings. Can someone educate me on either: 1. fixing these warnings the right way 2. how to disable the warning flags/makefile magic sean --=-bW3ehibkUSKStlLpZweE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iQEcBAABAgAGBQJSaeo9AAoJEBkJRdwI6BaHtaEH/jQVI99HWBBB5g9dELNwT72r WXiLYrEpbwtWME3b0vOM92i/yh5hr8ei5xHzPpN+b3Y3DoKA0D3jNyYJi0uFvwvD ZbEmTB/VJpYssfDQL/a9uh+HTRe1gNS1YMZ7rNu63X3P8oLHN+EeMzEbHKLKVH62 DHoHPcYEhVvTHSNJ0Sk33oseL1DDxC+tb6laq37Zd6KQedqTnFt1P34BmbxbDZmN 0se2k3lZImaJQb1Isv/+zJPi4EE7LqvXEnxi6yW2tV6Ibl109RkzWvtR3gTUDqc1 xXJ93HmWDkvimdXTBzDN2qSKZs8ylM5GT5k4RAhvSa9XXBHZyptTQiObsMIwqnU= =EkFj -----END PGP SIGNATURE----- --=-bW3ehibkUSKStlLpZweE--