Skip to content

Commit 952daca

Browse files
XenuIsWatchingdkalowsk
authored andcommitted
debug: symtab: fix ignored type qualifiers on func return type
const is ignored on the function return type. A warning is reported with -Wignored-qualifers. Remove the ignored const. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 7e1cd18 commit 952daca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/zephyr/debug/symtab.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct symtab_info {
4646
*
4747
* @return Pointer to the symbol table.
4848
*/
49-
const struct symtab_info *const symtab_get(void);
49+
const struct symtab_info *symtab_get(void);
5050

5151
/**
5252
* @brief Find the symbol name with a binary search
@@ -57,7 +57,7 @@ const struct symtab_info *const symtab_get(void);
5757
*
5858
* @return Name of the nearest symbol if found, otherwise "?" is returned.
5959
*/
60-
const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
60+
const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
6161

6262
/**
6363
* @}

subsys/debug/symtab/symtab.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#include <zephyr/debug/symtab.h>
1111
#include <zephyr/shell/shell.h>
1212

13-
const struct symtab_info *const symtab_get(void)
13+
const struct symtab_info *symtab_get(void)
1414
{
1515
extern const struct symtab_info z_symtab;
1616

1717
return &z_symtab;
1818
}
1919

20-
const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset)
20+
const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset)
2121
{
2222
const struct symtab_info *const symtab = symtab_get();
2323
const uint32_t symbol_offset = addr - symtab->first_addr;

0 commit comments

Comments
 (0)