This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new dc9aced12 link_tables: Fix warning about unused function
dc9aced12 is described below
commit dc9aced123fbb035e841bf592c437f23d7053dd1
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed May 6 10:04:02 2026 +0200
link_tables: Fix warning about unused function
Function generated to obtain link time table size
is static inline that can result in warning that
this function is unused.
This just mark function as being unused to prevent
warning
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
kernel/os/include/os/link_tables.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/os/include/os/link_tables.h
b/kernel/os/include/os/link_tables.h
index 2a738086b..9b1c34ed9 100644
--- a/kernel/os/include/os/link_tables.h
+++ b/kernel/os/include/os/link_tables.h
@@ -133,7 +133,7 @@
extern element_type const table_name[]; \
extern element_type const LINK_TABLE_START(table_name)[]; \
extern element_type const LINK_TABLE_END(table_name)[]; \
- static inline size_t table_name##_size(void) \
+ static inline size_t __attribute__((unused)) table_name##_size(void) \
{ \
return LINK_TABLE_END(table_name) - LINK_TABLE_START(table_name); \
}