Tcl Library Source Code

View Ticket
Login
Ticket UUID: e70a9c8db99954e53888b7c7cc9abac3b6e4a2b
Title: json.tab.c: redefinition of typedef 'YYSTYPE'
Type: Bug Version: 2.0
Submitter: jmroot Created on: 2025-02-16 20:30:55
Subsystem: json Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Open Last Modified: 2025-02-16 20:30:55
Resolution: None Closed By: nobody
    Closed on:
Description:
The file json.tab.c contains two instances of "typedef union YYSTYPE YYSTYPE;", which is an error in C standards prior to C11:

json.tab.c:136:23: error: redefinition of typedef 'YYSTYPE' is invalid in C [-Wtypedef-redefinition]
typedef union YYSTYPE YYSTYPE;
                      ^

Specifically encountered on macOS using an older Xcode clang version that defaults to C99.