|
2011-10-14
| ||
| 01:10 | • Closed ticket [3423059fff]: warning when code compiled with Sun C compiler p... artifact: bd50d73348 user: dgp | |
| 00:12 | • Ticket [3423059fff]: 1 change artifact: d6f2780fb7 user: msofer | |
|
2011-10-13
| ||
| 17:08 | • New ticket [3423059fff]. artifact: fc5095cfdb user: lvirden | |
warning when code compiled with Sun C compiler
Closed / Fixed3423059fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-10-13 17:08:24
When I configure
$ ./configure --prefix=/projects/sprs_lwv/tcl86 --enable-shared --enable-symbols --enable-stubs --enable-threads
and compile the tcl-trunk.zip code created Oct 13, 2011, I get this warning:
"/vol/tclsrcsol/tcl86/tcl8.6b_2011-10-13/generic/tclNamesp.c", line 173: warning: initialization type mismatch
which appears to be this bit of code:
/*
* Array of values describing how to implement each standard subcommand of the
* "namespace" command.
*/
static const EnsembleImplMap defaultNamespaceMap[] = {
{"children", NamespaceChildrenCmd, NULL, NULL, NULL, 0},
{"code", NamespaceCodeCmd, NULL, NULL, NULL, 0},
{"current", NamespaceCurrentCmd, NULL, NULL, NULL, 0},
{"delete", NamespaceDeleteCmd, NULL, NULL, NULL, 0},
{"ensemble", TclNamespaceEnsembleCmd, NULL, NULL, NULL, 0},
{"eval", NamespaceEvalCmd, NULL, NRNamespaceEvalCmd, NULL,
0},
{"exists", NamespaceExistsCmd, NULL, NULL, NULL, 0},
{"export", NamespaceExportCmd, NULL, NULL, NULL, 0},
{"forget", NamespaceForgetCmd, NULL, NULL, NULL, 0},
{"import", NamespaceImportCmd, NULL, NULL, NULL, 0},
{"inscope", NamespaceInscopeCmd, NULL, NULL, NRNamespaceInscopeCm
d, 0},
{"origin", NamespaceOriginCmd, NULL, NULL, NULL, 0},
{"parent", NamespaceParentCmd, NULL, NULL, NULL, 0},
{"path", NamespacePathCmd, NULL, NULL, NULL, 0},
{"qualifiers", NamespaceQualifiersCmd, NULL, NULL, NULL, 0},
{"tail", NamespaceTailCmd, NULL, NULL, NULL, 0},
{"unknown", NamespaceUnknownCmd, NULL, NULL, NULL, 0},
{"upvar", NamespaceUpvarCmd, TclCompileNamespaceUpvarCmd, NUL
L, NULL, 0},
{"which", NamespaceWhichCmd, NULL, NULL, NULL, 0},
{NULL, NULL, NULL, NULL, NULL, 0}
};
with the line in quesiton _appearing_ to be the "inscope" entry.
msofer Ticket [3423059fff]: 1 change
[History diff]2011-10-14 00:12:21
dgpplain2011-10-14 01:10:29
allow_comments - 1 Well *that's* a revealing warning. I guess we've never really tested our NR-enabling of [namespace inscope]. !!
Log in (anonymous is fine) to add a comment.