Skip to content

Commit f14ea32

Browse files
committed
settings: replace [[maybe_unused]] by __maybe_unused
[[maybe_unused]] is a C23 construct so fallback to Zephyr's __maybe_unused Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent fb7f0ac commit f14ea32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

subsys/settings/src/settings_store.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ static int settings_set_default_cb(const char *name, size_t len, settings_read_c
116116
* Returns the value's length in the provided `param` pointer
117117
*/
118118
static int settings_get_val_len_default_cb(const char *name, size_t len,
119-
[[maybe_unused]] settings_read_cb read_cb,
120-
[[maybe_unused]] void *cb_arg, void *param)
119+
settings_read_cb read_cb __maybe_unused,
120+
void *cb_arg __maybe_unused, void *param)
121121
{
122122
const char *next;
123123
size_t name_len;

subsys/settings/src/settings_zms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static ssize_t settings_zms_load_one(struct settings_store *cs, const char *name
278278
* It updates as well the next cache index and the next linked list node ID.
279279
*/
280280
static int settings_zms_get_next_ll(struct settings_zms *cf, uint32_t *ll_hash_id,
281-
[[maybe_unused]] uint32_t *ll_cache_index)
281+
uint32_t *ll_cache_index __maybe_unused)
282282
{
283283
struct settings_hash_linked_list settings_element;
284284
int ret = 0;

0 commit comments

Comments
 (0)