Unified · Split
| @@ -37,7 +37,7 @@ typedef jmp_buf sl_jmp_buf; · 36 unmodified lines | ||
| 37 | 37 | exit(1); \ |
| 38 | 38 | }while(0) |
| 39 | 39 | |
| 40 | −#define getcallerpc(a) __builtin_extract_return_addr(__builtin_return_address(0)) | |
| 40 | +#define getcallerpc(a) __builtin_extract_return_addr((USED(a), __builtin_return_address(0))) | |
| 41 | 41 | #define sys_setcallpc(arg) do{sl.cpc = getcallerpc(&arg);}while(0) |
| 42 | 42 | void sys_setcurrpc(int dummy); |
| 43 | 43 | void sys_seed(void *p, int sz); |