mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
espcoredump: fix test compilation error with GCC 8
This commit is contained in:
parent
5beb2802e0
commit
6221f5a819
@ -23,7 +23,7 @@ volatile unsigned long crash_flags = TCI_UNALIGN_PTR;
|
|||||||
void bad_ptr_func()
|
void bad_ptr_func()
|
||||||
{
|
{
|
||||||
unsigned long *ptr = (unsigned long *)0;
|
unsigned long *ptr = (unsigned long *)0;
|
||||||
volatile int cnt;
|
volatile int cnt = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
for (i = 0; i < 1000; i++) {
|
for (i = 0; i < 1000; i++) {
|
||||||
@ -51,7 +51,7 @@ void recur_func()
|
|||||||
{
|
{
|
||||||
static int rec_cnt;
|
static int rec_cnt;
|
||||||
unsigned short *ptr = (unsigned short *)0x5;
|
unsigned short *ptr = (unsigned short *)0x5;
|
||||||
volatile int cnt;
|
volatile int cnt = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (rec_cnt++ > 2) {
|
if (rec_cnt++ > 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user