Overview
| Artifact ID: | fdee532212d316a4cee84178650c3d66acbf509cfbfffa2e12ef1f928fdb028e |
|---|---|
| Ticket: | 26870862f0e8884eaec02c5a3bbc4caf2431a310
Wrong sentinel in Tcl_SetErrorCode usage |
| User & Date: | jan.nijtmans on 2023-10-19 18:19:28 |
Changes
- icomment:
Addition: For C++-compilers, the problem is that some C++-compilers (e.g. clang-8.0.1) define "NULL" as identical to "0", which is allowed in C++-land. See: [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95700] The only way which should work with all C++-compilers is using (void *)NULL. In C, this is no problem. We don't want to force extension-writers to do the same: Many extensions don't care about C++. C++-case handled [234ff497c44f843c|here] Still keeping open, it would be nice to have the compiler check for this by default.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Severe"
- status changed to: "Pending"