Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3c0a86b7a0778658ae18acb3ed5c87a3195ce18106e844b9568a1d1e42c4fc58
Ticket: 04aad56155f0546ddaaa2aaa66106f1b3057eeae
__attribute__((noreturn)) conflicts with stdnoreturn.h
User & Date: petere on 2025-04-07 08:09:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. 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.
    
  5. foundin changed to: "8.6.16, 9.0.1"
  6. is_private changed to: "0"
  7. login: "petere"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "2eebf533c4f6a1dc614b6142fee7dc3943b9de46"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "petere"
  14. subsystem changed to: "50. Embedding Support"
  15. title changed to:
    __attribute__((noreturn)) conflicts with stdnoreturn.h
    
  16. type changed to: "Patch"