Add a "noreturn" attribute to 'scb_reset_system'
Adding this attribute allows to avoid warnings issued by GCC in cases when 'scb_reset_system' is used as a last call in a function with "noreturn" attribute set(usually reset handler of some sorts)
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
e944876b63
commit
6cb7d8abf3
@@ -382,8 +382,8 @@ struct scb_exception_stack_frame {
|
||||
: [frameptr]"=r" (f)); \
|
||||
} while (0)
|
||||
|
||||
void scb_reset_core(void);
|
||||
void scb_reset_system(void);
|
||||
void scb_reset_core(void) __attribute__((noreturn, naked));
|
||||
void scb_reset_system(void) __attribute__((noreturn, naked));
|
||||
void scb_set_priority_grouping(u32 prigroup);
|
||||
|
||||
/* TODO: */
|
||||
|
||||
Reference in New Issue
Block a user