aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2014-07-31 20:10:47 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-07-31 20:10:47 +0200
commitf349489e7e5b5341a9c1a590e9a41c2e07d3bdbb (patch)
tree8c7c54fd4ffcc2b58ca0f883fcf8ca4433a4e961 /sysdeps
parent2f438e20ab591641760e97458d5d1569942eced5 (diff)
downloadglibc-f349489e7e5b5341a9c1a590e9a41c2e07d3bdbb.tar
glibc-f349489e7e5b5341a9c1a590e9a41c2e07d3bdbb.tar.gz
glibc-f349489e7e5b5341a9c1a590e9a41c2e07d3bdbb.tar.bz2
glibc-f349489e7e5b5341a9c1a590e9a41c2e07d3bdbb.zip
[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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/s390/s390-64/utf16-utf32-z9.c1
-rw-r--r--sysdeps/s390/s390-64/utf8-utf16-z9.c1
-rw-r--r--sysdeps/s390/s390-64/utf8-utf32-z9.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c
index 11a098fa99..101f574fa1 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 74754211c1..4155187b97 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 cb74f34075..3c0296eaa7 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; \