From patchwork Thu Jul 31 10:15:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 375201 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 53EA2140179 for ; Thu, 31 Jul 2014 20:16:09 +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:to:from:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=evuXzwqXUW/EDgm9bcphVBfGzjQR8 vrymPpFTNyVCqoALNi5ZG5MNmOzn+SVmtITF6kJ/NYON4vrkxeUJVwyGW05zWBih zhP2WvZvNScAdigp+6lyUmgtA/kSfHXECpNXdIC7tUKfHedSCR3VYzf1myPwhbeH hMIlPHg39H53XY= 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:to:from:subject:date:message-id:mime-version :content-type; s=default; bh=LFd4jx0SF2wYmeAma8808yYBhEQ=; b=rz0 LSUg7s6++VCgvsbiFVfw+/kpZO2JnnxKjx8iTp9eQC7d5aIk7muomg79ORp0xhG2 VWynkHGKqAcVxfng56uSk/G1+HzGOZKtXKKQ2xjrDbQsHd+uX6OUOZu9zLfpNlkh 7ALGs/NgFButsgrURXNT5RH3Ccm+YI4J5KIorPhk= Received: (qmail 20233 invoked by alias); 31 Jul 2014 10:16:03 -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 20221 invoked by uid 89); 31 Jul 2014 10:16:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: [PATCH] S390: Fix remaining Wundef ONE_DIRECTION warning messages Date: Thu, 31 Jul 2014 12:15:44 +0200 Lines: 91 Message-ID: Mime-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Hi, This patch fixes the remaining Wundef ONE_DIRECTION warnings for s390 specific conversions. It defines ONE_DIRECTION to 0 like the patch from Steve Ellcey: https://www.sourceware.org/ml/libc-alpha/2014-05/msg00039.html OK to commit? Bye Stefan --- 2014-07-31 Stefan Liebler * sysdeps/s390/s390-64/utf16-utf32-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf16-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf32-z9.c (ONE_DIRECTION): Define. commit 7507692a7e2ea9a17268ec75f1bd04bc2d6ddeb1 Author: Stefan Liebler Date: Thu Jul 31 10:50:48 2014 +0200 [PATCH] S390: Fix remaining ONE_DIRECTION warning messages This patch fixes the remaining ONE_DIRECTION warnings for s390 specific conversions. It defines ONE_DIRECTION to 0 like the patch from Steve Ellcey: https://www.sourceware.org/ml/libc-alpha/2014-05/msg00039.html Changelog: * sysdeps/s390/s390-64/utf16-utf32-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf16-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf32-z9.c (ONE_DIRECTION): Define. diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c index 11a098f..101f574 100644 --- a/sysdeps/s390/s390-64/utf16-utf32-z9.c +++ b/sysdeps/s390/s390-64/utf16-utf32-z9.c @@ -44,6 +44,7 @@ #define FROM_LOOP from_utf16_loop #define TO_LOOP to_utf16_loop #define FROM_DIRECTION (dir == from_utf16) +#define ONE_DIRECTION 0 #define PREPARE_LOOP \ enum direction dir = ((struct utf16_data *) step->__data)->dir; \ int emit_bom = ((struct utf16_data *) step->__data)->emit_bom; \ diff --git a/sysdeps/s390/s390-64/utf8-utf16-z9.c b/sysdeps/s390/s390-64/utf8-utf16-z9.c index 7475421..4155187 100644 --- a/sysdeps/s390/s390-64/utf8-utf16-z9.c +++ b/sysdeps/s390/s390-64/utf8-utf16-z9.c @@ -42,6 +42,7 @@ #define FROM_LOOP from_utf8_loop #define TO_LOOP to_utf8_loop #define FROM_DIRECTION (dir == from_utf8) +#define ONE_DIRECTION 0 #define PREPARE_LOOP \ enum direction dir = ((struct utf8_data *) step->__data)->dir; \ int emit_bom = ((struct utf8_data *) step->__data)->emit_bom; \ diff --git a/sysdeps/s390/s390-64/utf8-utf32-z9.c b/sysdeps/s390/s390-64/utf8-utf32-z9.c index cb74f34..3c0296e 100644 --- a/sysdeps/s390/s390-64/utf8-utf32-z9.c +++ b/sysdeps/s390/s390-64/utf8-utf32-z9.c @@ -44,6 +44,7 @@ #define FROM_LOOP from_utf8_loop #define TO_LOOP to_utf8_loop #define FROM_DIRECTION (dir == from_utf8) +#define ONE_DIRECTION 0 #define PREPARE_LOOP \ enum direction dir = ((struct utf8_data *) step->__data)->dir; \ int emit_bom = ((struct utf8_data *) step->__data)->emit_bom; \