From owner-freebsd-ports@FreeBSD.ORG Thu Feb 27 02:26:16 2014 Return-Path: Delivered-To: ports@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 ESMTPS id 06A65D6B for ; Thu, 27 Feb 2014 02:26:16 +0000 (UTC) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 51CE81825 for ; Thu, 27 Feb 2014 02:26:15 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.7/8.14.7) with ESMTP id s1R2QEgc096776; Wed, 26 Feb 2014 20:26:14 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id s1R2QEDJ096775; Wed, 26 Feb 2014 20:26:14 -0600 (CST) (envelope-from brooks) Date: Wed, 26 Feb 2014 20:26:14 -0600 From: Brooks Davis To: Joe Nosay Subject: Re: CLang flags query:: I'm wanting to port software to FreeBSD Message-ID: <20140227022614.GF81440@lor.one-eyed-alien.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l+goss899txtYvYf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 02:26:16 -0000 --l+goss899txtYvYf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 26, 2014 at 06:43:38PM -0500, Joe Nosay wrote: > I've noticed different flags such as -Wno-parentheses and such along with > the -Wno-unused-variable. I would like to know where would be a good source > online to find the flags; and, I would like to know what flags are used by > porters to optimize builds. These will be placed on the Makefile of the > source such that it can be built natively on FreeBSD. I would be able to > test software. There is unfortunately no central reference for Clang warning flags. The closest I've found is http://clang.llvm.org/docs/UsersManual.html#options-to-control-error-and-warning-messages but it omits most of them. Flags of the form -Wno-* disable warnings, usually because the code in question is vendor code we don't want to touch, a mess no one want's to clean up, or both. You should generally avoid them. I'm confused why you talk about optimization in the context of these flags. They have no impact on code generation. -- Brooks --l+goss899txtYvYf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iKYEARECAGYFAlMOokVfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY1NUQ1MTlDMjZBNzgyRTcyNTI5OUJGMDVE OEU4QkU5RjIzODFBRDQACgkQXY6L6fI4GtSW1gCff2GC9fXTI1CIiyOnI371eonH J4QAoLmyyT2QeyUMykjAhHKwBhcjMdne =Z4Bw -----END PGP SIGNATURE----- --l+goss899txtYvYf--