Skip to content
Tcl Source Code History Of Ticket 04aad56155f0546d
Login

History Of Ticket 04aad56155f0546d

Artifacts Associated With Ticket 04aad56155f0546d

  1. Ticket change [3c0a86b7a0] (rid 238913) by petere on 2025-04-07 08:09:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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.
      
    5. foundin initialized to: "8.6.16, 9.0.1"
    6. is_private initialized to: "0"
    7. login: "petere"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "2eebf533c4f6a1dc614b6142fee7dc3943b9de46"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "petere"
    14. subsystem initialized to: "50. Embedding Support"
    15. title initialized to:
      __attribute__((noreturn)) conflicts with stdnoreturn.h
      
    16. type initialized to: "Patch"
  2. Add attachment "0001-Fix-potential-conflict-of-__attribute__-noreturn.patch" [fbf368a565] (rid 238914) by petere on 2025-04-07 08:09:52.

  3. Ticket change [280dc4fe3f] (rid 238923) by jan.nijtmans on 2025-04-07 09:49:58:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460772.90969913"
    3. closer changed to: "jan.nijtmans"
    4. 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!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"