Commit 91d1c50
committed
compilersupport: fix compilation in C23 mode
GCC15 added support for C23's `unreachable()`, causing a warning:
```
src/compilersupport_p.h:215:11: warning: ‘unreachable’ redefined
215 | # define unreachable() __builtin_unreachable()
| ^~~~~~~~~~~
stddef.h:468:9: note: this is the previous definition
468 | #define unreachable() (__builtin_unreachable ())
| ^~~~~~~~~~~
```
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>1 parent 0cd8b05 commit 91d1c50
1 file changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
213 | 209 | | |
214 | 210 | | |
215 | 211 | | |
216 | | - | |
217 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
218 | 215 | | |
219 | | - | |
220 | | - | |
221 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
222 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | | - | |
226 | | - | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
| |||
0 commit comments