Commit 1dc6696
fix(platform): mark malloc_trap operator new as noexcept
GCC with -Werror rejects operator new returning nullptr unless declared
noexcept/throw(). Since these trap functions always call abort(), the
noexcept specification is correct and silences the diagnostic.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent ce164e3 commit 1dc6696
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
0 commit comments