clang: mark inline functions unused and add warning options
commit65ab3ab1976c9e1e2642dd2e79316ff4129d8bc9
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 30 Jun 2020 17:14:21 +0000 (30 10:14 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 30 Jun 2020 17:14:21 +0000 (30 10:14 -0700)
tree10f77d9be420c338718c0e0ccaf17f7f4d966c56
parentf21b2ba8f3772eb7d1207c214a181516b9d1f4e4
clang: mark inline functions unused and add warning options

clang, unlike gcc, will warn on inline functions which are
unused. This can happen if a function is either intended to be used in
the future, or it is only used under certain config options. Mark
those functions with the "unused" attribute; not only does it quiet
the warning, but it also documents it for the user.

Shuffle around the warning options in configure and add a few more
that are specific to clang.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
asm/parser.c
asm/preproc.c
config/unconfig.h
configure.ac
include/compiler.h
include/strlist.h