From patchwork Mon Mar 17 12:23:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 330921 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 8F7A62C00CB for ; Mon, 17 Mar 2014 23:24:20 +1100 (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:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=thezx5Iws8D4NxTfRyo9tatXUAQaYzA DfSPiRzTgZbqhizTpnPsrDMZg9wR7as7ZqRVVgntJMXd828pCAAL4nrz6PhR6cWZ LAJElzmaykuOZNrPCqCRM48/wl7BSvYXjUDB6sOjDomyR9s5pVQywaru3Vyve917 t9GjnJDAguKw= 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:subject:date:message-id:in-reply-to :references; s=default; bh=BZw0CoxoBG7KMhw9IWivcBets70=; b=nfdHb 8Tfa2LYCvIGstjmyzpdoIElLHT++4wCq7Xp8lNqDPVn60V3hno2452E0HmYVMboP oDhZCnB8iKmPeNU84DeNmPTyE2n3klTTL78knyw1q/JbfXKgVzuIvf0a3W22q67Y yUekpS5XMUSMJpYaZQocYfB/NKVgUFaZ5p3TkU= Received: (qmail 18966 invoked by alias); 17 Mar 2014 12:23:40 -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 18775 invoked by uid 89); 17 Mar 2014 12:23:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f180.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=isI9fpCopgB605DHq5rnYKTbS0PIVriESVW2WUlGyrM=; b=VpxmD14f3tA8VfxqMGOQuotkr7RGya00ONXgZjAVsmnyuHiyI1B325BkxCM2CZh6nP JUMSa0suiviCadXI8t6lb6vDJ5C62zM+zA+HO0VzECXuBeRf658GTgO1Ue6PvuPbT2zL Pvkn2DYLRtRaEg6DRR09q874PZYTS/W/8xDmLvy/Ny2gbjkzaLt60un0B1MvPmWaNQ7S A0f2WPlrDdeUG6bWrqrQEJI883ktITBpOhJtjAa9fa/EoTnxuAoDd2avy1XHjw0AY1aA LRswg0tqNbG6Sln9pESJcRXPzJxJwuSu1wl/djjI8hMdMISksJAeW4p/a8x+PRSPgQSt c8xg== X-Gm-Message-State: ALoCoQmWmeAdxH5iwRDBAoFZcda88oqije6yd/HdWohEUs4ymEIV6ZfI3DNjtoJdbXL+zVXTrInR X-Received: by 10.180.107.136 with SMTP id hc8mr9525118wib.11.1395059013219; Mon, 17 Mar 2014 05:23:33 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH 4/7] Fix _IO_JUMPS_OFFSET -Wundef warnings Date: Mon, 17 Mar 2014 12:23:21 +0000 Message-Id: <1395059004-20960-4-git-send-email-will.newton@linaro.org> In-Reply-To: <1395059004-20960-1-git-send-email-will.newton@linaro.org> References: <1395059004-20960-1-git-send-email-will.newton@linaro.org> ChangeLog: 2014-03-17 Will Newton * libio/genops.c: Check whether _IO_JUMPS_OFFSET is defined with #ifdef rather than #if. * libio/libioP.h: Likewise. * stdio-common/vfprintf.c: Likewise. --- libio/genops.c | 2 +- libio/libioP.h | 2 +- stdio-common/vfprintf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libio/genops.c b/libio/genops.c index e0ce8cc..42efe58 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -624,7 +624,7 @@ _IO_old_init (fp, flags) fp->_IO_save_end = NULL; fp->_markers = NULL; fp->_cur_column = 0; -#if _IO_JUMPS_OFFSET +#ifdef _IO_JUMPS_OFFSET fp->_vtable_offset = 0; #endif #ifdef _IO_MTSAFE_IO diff --git a/libio/libioP.h b/libio/libioP.h index 8a7b85b..a59e95d 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -106,7 +106,7 @@ extern "C" { #define _IO_WIDE_JUMPS(THIS) ((struct _IO_FILE *) (THIS))->_wide_data->_wide_vtable #define _IO_CHECK_WIDE(THIS) (((struct _IO_FILE *) (THIS))->_wide_data != NULL) -#if _IO_JUMPS_OFFSET +#ifdef _IO_JUMPS_OFFSET # define _IO_JUMPS_FUNC(THIS) \ (*(struct _IO_jump_t **) ((void *) &_IO_JUMPS ((struct _IO_FILE_plus *) (THIS)) \ + (THIS)->_vtable_offset)) diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index f7e5f61..70cdba4 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -2297,7 +2297,7 @@ buffered_vfprintf (_IO_FILE *s, const CHAR_T *format, hp->_mode = -1; #endif hp->_IO_file_flags = _IO_MAGIC|_IO_NO_READS|_IO_USER_LOCK; -#if _IO_JUMPS_OFFSET +#ifdef _IO_JUMPS_OFFSET hp->_vtable_offset = 0; #endif #ifdef _IO_MTSAFE_IO