Tcl Source Code

Check-in [d038315568]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Eliminate clang compiler warning: use of logical '&&' with constant operand
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | core-9-0-branch
Files: files | file ages | folders
SHA3-256: d03831556853988c3058ce15ac7b52f58cec614fd2cf9112e24c212c33ae6471
User & Date: jan.nijtmans 2025-08-21 15:53:11.054
Context
2025-08-22
14:52
Fix memory debugging info check-in: 7247e77c5f user: dkf tags: core-9-0-branch
11:29
Merge 9.0 check-in: 16435add36 user: jan.nijtmans tags: trunk, main
2025-08-21
15:53
Eliminate clang compiler warning: use of logical '&&' with constant operand check-in: d038315568 user: jan.nijtmans tags: core-9-0-branch
2025-08-19
12:44
support for MacOS Tahoe, platform => 1.0.20 check-in: a14f4e0d7f user: jan.nijtmans tags: core-9-0-branch
Changes
Unified Diff Ignore Whitespace Patch
Changes to generic/tclOO.c.
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
    /*
     * Instruct everyone to no longer use any allocated fields of the object.
     * Also delete the command that refers to the object at this point (if it
     * still exists) because otherwise its pointer to the object points into
     * freed memory.
     */

    if (((Command *) oPtr->command)->flags && CMD_DYING) {
	/*
	 * Something has already started the command deletion process. We can
	 * go ahead and clean up the namespace,
	 */
    } else {
	/*
	 * The namespace must have been deleted directly.  Delete the command







|







1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
    /*
     * Instruct everyone to no longer use any allocated fields of the object.
     * Also delete the command that refers to the object at this point (if it
     * still exists) because otherwise its pointer to the object points into
     * freed memory.
     */

    if (((Command *) oPtr->command)->flags & CMD_DYING) {
	/*
	 * Something has already started the command deletion process. We can
	 * go ahead and clean up the namespace,
	 */
    } else {
	/*
	 * The namespace must have been deleted directly.  Delete the command