Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit631f66b

Browse files
authored
Attribute__real_system_restart_local() as(noreturn) (#7167)
* Attribute `__real_system_restart_local()` as `(noreturn)`* As well as `abort()`.* Aggragate two decls into `coredecls.h`.
1 parent726df69 commit631f66b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

‎cores/esp8266/Esp.cpp‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ bool EspClass::rtcUserMemoryWrite(uint32_t offset, uint32_t *data, size_t size)
193193
}
194194
}
195195

196-
197-
198-
extern"C"void__real_system_restart_local();
199196
voidEspClass::reset(void)
200197
{
201198
__real_system_restart_local();

‎cores/esp8266/core_esp8266_postmortem.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@
3232
#include"pgmspace.h"
3333
#include"gdb_hooks.h"
3434
#include"StackThunk.h"
35+
#include"coredecls.h"
3536

3637
extern"C" {
3738

38-
externvoid__real_system_restart_local();
39-
4039
// These will be pointers to PROGMEM const strings
4140
staticconstchar* s_panic_file =0;
4241
staticint s_panic_line =0;

‎cores/esp8266/coredecls.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ void esp_schedule();
2121
voidtune_timeshift64 (uint64_t now_us);
2222
voiddisable_extra4k_at_link_time (void) __attribute__((noinline));
2323
boolsntp_set_timezone_in_seconds(int32_t timezone);
24+
void__real_system_restart_local() __attribute__((noreturn));
2425

2526
uint32_tsqrt32 (uint32_t n);
2627
uint32_tcrc32 (constvoid* data,size_t length,uint32_t crc =0xffffffff);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp