[PATCH]Fix newlib.wctype/twctrans.c compilation warning: implicit declaration of function 'toupper' & 'tolower'

Renlin Li renlin.li@arm.com
Wed Jan 7 13:43:00 GMT 2015


Hi all,

Recently, newlib/testsuite/newlib.wctype/twctrans.c fails to build for 
the following targets using latest GCC source.

aarch64-none-elf
arm-none-eabi
aarch64_be-none-elf

The following messages are produced:
newlib.wctype/twctrans.c compilation warning: implicit declaration of 
function 'toupper' & 'tolower' [-Wimplicit-function-declaration]

Instead, towupper and towloer should be called as wctype.h is included 
in the test case.

newlib regresstion test is done using aarch64-none-elf toolchain, no new 
issues.
Is it Okay to commit?


newlib/ChangeLog:

2015-01-07 Renlin Li <renlin.li@arm.com>

      * testsuite/newlib.wctype/twctrans.c (main): Use towlower and 
towupper.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.diff
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150107/e8c9d73c/attachment.bin>


More information about the Newlib mailing list