diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-11-26 12:52:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-11-26 12:52:08 +0000 |
commit | 3b20fd5c0df2621a38d128bb9d7ba145cdd4657c (patch) | |
tree | 915466398bd7842355809986ebf1a7858631f0d6 /ChangeLog | |
parent | 704f794714704ba430d84d10d6809acaf7ca59bf (diff) | |
download | glibc-3b20fd5c0df2621a38d128bb9d7ba145cdd4657c.tar.gz glibc-3b20fd5c0df2621a38d128bb9d7ba145cdd4657c.tar.xz glibc-3b20fd5c0df2621a38d128bb9d7ba145cdd4657c.zip |
Fix test-strchr.c warnings for wide string testing.
string/test-strchr.c is used for both wide and narrow string testing, but produces a series of warnings for wide string testing because of hardcoded use of narrow characters in the function check1. This patch fixes that function to use macros abstracting away the wide / narrow string choice, adding a new such macro to handle the string and character constants. Tested for x86_64. * string/test-strchr.c [!WIDE] (L): New macro. [WIDE] (L): Likewise. (check1): Use CHAR instead of char. Use L on string and character constants.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index efd18ee3c0..66a78e2c3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-11-26 Joseph Myers <joseph@codesourcery.com> + + * string/test-strchr.c [!WIDE] (L): New macro. + [WIDE] (L): Likewise. + (check1): Use CHAR instead of char. Use L on string and character + constants. + 2014-11-26 Adhemerval Zanella <azanella@linux.ibm.com> * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel} |