Commit 6686568
LN882H Fix
[lightning-ln882h] Fix -Wregister warnings from CmBacktrace cmb_def.h (#376)
The LN882H SDK's CmBacktrace library (cmb_def.h) uses the 'register'
storage class specifier in inline assembly helpers (cmb_get_msp/psp/sp).
This keyword was removed in C++17 (P0001R1) and produces -Wregister
warnings when compiling with -std=c++17.
Add a fixup header that wraps the original cmb_def.h with GCC diagnostic
pragmas to suppress the warning without modifying SDK sources.1 parent ea5142d commit 6686568
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
0 commit comments