shell: Replace __attribute__((unused)) with __unused

Replaced gcc specific with generic.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2020-03-25 07:44:49 +01:00 committed by Anas Nashif
commit f0548f100e

View file

@ -162,10 +162,10 @@ struct shell_static_entry {
mandatory, optional) \ mandatory, optional) \
), \ ), \
(\ (\
static shell_cmd_handler dummy_##syntax##_handler \ static shell_cmd_handler dummy_##syntax##_handler __unused = \
__attribute__((unused)) = handler;\ handler;\
static const struct shell_cmd_entry *dummy_subcmd_##syntax \ static const struct shell_cmd_entry *dummy_subcmd_##syntax \
__attribute__((unused)) = subcmd\ __unused = subcmd\
)\ )\
) )
/** /**