From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7771 Path: news.gmane.org!not-for-mail From: Alex Dowad Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2] When building, don't use compiler flags which cause warnings Date: Tue, 26 May 2015 20:36:45 +0200 Message-ID: <1432665405-26308-1-git-send-email-alexinbeijing@gmail.com> References: <20150526181830.GD17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432665436 10329 80.91.229.3 (26 May 2015 18:37:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 18:37:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7783-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 20:37:16 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YxJj0-0003LI-Oa for gllmg-musl@m.gmane.org; Tue, 26 May 2015 20:37:14 +0200 Original-Received: (qmail 15801 invoked by uid 550); 26 May 2015 18:37:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 15761 invoked from network); 26 May 2015 18:37:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=oRosGQ/RYIdTSyvq6IRCXiQwtA52EENF4sqD4sjO8AU=; b=dEYA0TJ3CWEipPqqv9buW0mbw4Fb+HLQF/LyQzP3eUeO2ZCAI36wv6Rgi1cd7Dg8Ii X+B/8BITm19utoZx5C3PXppQhArUzl0LqNlU904CY6JffQ2y9Tms98mess5GHElu0R1s vmtqE3kCSnbJkvsZ2U9i14eJVydAfOPKyPvup5dgCtWm1nz7ns3aPY5Da+zM0kXn0fVT Mjuas7ku79AQOFSwhvb1To2snNj35wcUUOYCt1FYAvQJvRUNCeP0uKpdDW1MlbLQWOwP cHynfzNtAf3c7sqeEda4zI89ZAbu1xovHnQj5fKlgpcxWIqFIWeeRs7Mli2KNPag+RW/ SSFQ== X-Received: by 10.180.86.234 with SMTP id s10mr42725625wiz.50.1432665418438; Tue, 26 May 2015 11:36:58 -0700 (PDT) X-Mailer: git-send-email 2.0.0.GIT In-Reply-To: <20150526181830.GD17573@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7771 Archived-At: This silences some warnings when building with clang. --- Dear Rich Felker, This accomplishes the same thing as the previous patch by "promoting" all warnings to errors. Look better? Thanks, Alex Dowad configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index cf9227a..bca2bd9 100755 --- a/configure +++ b/configure @@ -80,7 +80,7 @@ fi tryflag () { printf "checking whether compiler accepts %s... " "$2" echo "typedef int x;" > "$tmpc" -if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then +if $CC $2 -Werror -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then printf "yes\n" eval "$1=\"\${$1} \$2\"" eval "$1=\${$1# }" @@ -94,7 +94,7 @@ fi tryldflag () { printf "checking whether linker accepts %s... " "$2" echo "typedef int x;" > "$tmpc" -if $CC -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then +if $CC -Werror -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then printf "yes\n" eval "$1=\"\${$1} \$2\"" eval "$1=\${$1# }" -- 2.0.0.GIT