Overview
| Artifact ID: | 3c0a86b7a0778658ae18acb3ed5c87a3195ce18106e844b9568a1d1e42c4fc58 |
|---|---|
| Ticket: | 04aad56155f0546ddaaa2aaa66106f1b3057eeae
__attribute__((noreturn)) conflicts with stdnoreturn.h |
| User & Date: | petere on 2025-04-07 08:09:13 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
If `<stdnoreturn.h>` is included first, then `noreturn` is defined to `_Noreturn`, and then `__attribute__((noreturn))` will end up being `__attribute__((_Noreturn))`, which would not be recognized and might result in a compiler warning. To avoid this, use the alternative spelling `__attribute__((__noreturn__))` instead. This is supported by the same compiler versions. But I don't know if there is an equivalent workaround for `__declspec(noreturn)`. An alternative might be to do `#define TCL_NORETURN _Noreturn` if the compiler is in C11 mode.
- foundin changed to: "8.6.16, 9.0.1"
- is_private changed to: "0"
- login: "petere"
- priority changed to: "5 Medium"
- private_contact changed to: "2eebf533c4f6a1dc614b6142fee7dc3943b9de46"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "petere"
- subsystem changed to: "50. Embedding Support"
- title changed to:
__attribute__((noreturn)) conflicts with stdnoreturn.h
- type changed to: "Patch"