OSDN Git Service

ctype.h: remove duplicate isdigit() helper
authorArnd Bergmann <arnd@arndb.de>
Mon, 19 Oct 2020 07:35:39 +0000 (09:35 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 28 Oct 2020 13:55:36 +0000 (14:55 +0100)
commitcaabdd0f59a9771ed095efe3ad5a08867b976ab2
tree3e588a89ccaddec4fce4a183b3e9ccaa7c60fc51
parentf44ca0871b7a98b075560711d48849914a102221
ctype.h: remove duplicate isdigit() helper

gcc warns a few thousand times about the isdigit() shadow:

include/linux/ctype.h:26:19: warning: declaration of 'isdigit' shadows a built-in function [-Wshadow]

As there is already a compiler builtin, just use that, and make
it clear we do that by defining a macro.  Unfortunately, clang
does not have the isdigit() builtin, so this has to be conditional.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/compiler_types.h
include/linux/ctype.h