Artifacts Associated With Ticket 04aad56155
Ticket change [3c0a86b7a0] (rid 238913) by petere on 2025-04-07 08:09:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized 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 initialized to: "8.6.16, 9.0.1"
- is_private initialized to: "0"
- login: "petere"
- priority initialized to: "5 Medium"
- private_contact initialized to: "2eebf533c4f6a1dc614b6142fee7dc3943b9de46"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "petere"
- subsystem initialized to: "50. Embedding Support"
- title initialized to:
__attribute__((noreturn)) conflicts with stdnoreturn.h
- type initialized to: "Patch"
Add attachment "0001-Fix-potential-conflict-of-__attribute__-noreturn.patch" [fbf368a565] (rid 238914) by petere on 2025-04-07 08:09:52.
Ticket change [280dc4fe3f] (rid 238923) by jan.nijtmans on 2025-04-07 09:49:58:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460772.90969913"
- closer changed to: "jan.nijtmans"
- icomment:
Thanks for the report. Fixed [4dccf561263d0f83|here] Since <stdnoreturn.h> has issues on various platforms, and _Noreturn is already deprecated in C23, I recommend not to use `<stdnoreturn.h>`. But since the double-underscored variants give less chance to problems, your suggestion is better than doing nothing. See: [https://www.gnu.org/software/gnulib/manual/html_node/stdnoreturn_002eh.html] Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"