diff --git a/include/shell/shell.h b/include/shell/shell.h index c2883777976..b2e479cd59b 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -162,10 +162,10 @@ struct shell_static_entry { mandatory, optional) \ ), \ (\ - static shell_cmd_handler dummy_##syntax##_handler \ - __attribute__((unused)) = handler;\ + static shell_cmd_handler dummy_##syntax##_handler __unused = \ + handler;\ static const struct shell_cmd_entry *dummy_subcmd_##syntax \ - __attribute__((unused)) = subcmd\ + __unused = subcmd\ )\ ) /**