Skip to content

Conversation

@thiagomacieira
Copy link
Member

@thiagomacieira thiagomacieira commented Nov 28, 2025

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 ())
      |         ^~~~~~~~~~~

Fixes #311

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>
@thiagomacieira thiagomacieira merged commit 91d1c50 into intel:main Feb 5, 2026
9 checks passed
@thiagomacieira thiagomacieira deleted the compilersupport_fix_compilation_in_C23_mode branch February 5, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#define unreachable() (__builtin_unreachable ()) redefined

2 participants