From patchwork Thu Aug 21 10:57:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 381905 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C94B6140081 for ; Thu, 21 Aug 2014 20:58:18 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=iAdwNXmPbBoei3wqYaNQ1tQhFZIlB44 HaPcUOr/Ox3nkZDUNfWm0UMIJ2h8ns3KQlWvonqdmkMKVsKshQD6sUu3nJ8gksLl d/BJO8/+TTIrWpKz4ARcROupHZXfwM0WkyC7DCD4Z0ESr4yejTEDxfUobyN/Pz+2 PGIKlg7b66bg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=uwXU8/WbYcsmmUarro3IcVLxIEM=; b=JmEyW 58NGv+JDAMmHelAsCFg9F3cYIPjKM90uftUMXsYpEZezVglrirM421+lJLsb8kIj HVjWfa1n7aJEa/wsYmdG/gacm1hElrjJzJshIII7h7nHpMLUyTsRwgM+VkS7Ur1K R4AOQbFnElI7eN0lpfEILFruceGxGpryxjPTu4= Received: (qmail 16025 invoked by alias); 21 Aug 2014 10:58:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16014 invoked by uid 89); 21 Aug 2014 10:58:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Cc: Siddhesh Poyarekar Subject: [PATCH 02/19] Fix -Wundef warning in SHLIB_COMPAT Date: Thu, 21 Aug 2014 16:27:26 +0530 Message-Id: <1408618663-2281-3-git-send-email-siddhesh@redhat.com> In-Reply-To: <1408618663-2281-1-git-send-email-siddhesh@redhat.com> References: <1408618663-2281-1-git-send-email-siddhesh@redhat.com> Replace the IS_IN_##lib with IS_IN(lib). Verified that the generated code remains the same. * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN. --- include/shlib-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shlib-compat.h b/include/shlib-compat.h index fac0814..30804d3 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -41,7 +41,7 @@ # define SHLIB_COMPAT(lib, introduced, obsoleted) \ _SHLIB_COMPAT (lib, introduced, obsoleted) # define _SHLIB_COMPAT(lib, introduced, obsoleted) \ - ((IS_IN_##lib - 0) \ + (IS_IN (lib) \ && (!(ABI_##lib##_##obsoleted - 0) \ || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))))