Overview
| Artifact ID: | ad5b586bab8bae73c378a7caff698f334f642ee1 |
|---|---|
| Ticket: | 453872ffffffffffffffffffffffffffffffffff
Compile warnings on static functions |
| User & Date: | techentin on 2001-08-28 20:22:28 |
Changes
- icomment:
Logged In: YES user_id=43494 The warning in tclCompCmds.c, can be repaired with the patch (diff) I've supplied. The way I read TIPS #16 and #24, this is part of Events -> Time Measurement, which are maintained by Kevin Kenny, Daniel Steffen, Jim Ingham, and Jeff Hobbs star> diff -c ../generic/tclCompCmds.c.orig ../generic/tclCompCmds.c *** ../generic/tclCompCmds.c.orig Fri Aug 24 19:08:46 2001 --- ../generic/tclCompCmds.c Tue Aug 28 07:54:39 2001 *************** *** 2581,2587 **** *---------------------------------------------------------------------- */ ! int TclPushVarName(interp, varTokenPtr, envPtr, flags, localIndexPtr, maxDepthPtr, simpleVarNamePtr, isScalarPtr) Tcl_Interp *interp; /* Used for error reporting. */ --- 2581,2587 ---- *---------------------------------------------------------------------- */ ! static int TclPushVarName(interp, varTokenPtr, envPtr, flags, localIndexPtr, maxDepthPtr, simpleVarNamePtr, isScalarPtr) Tcl_Interp *interp; /* Used for error reporting. */ The warning in tclDate.c is slightly more complex. It arises because the lex generated code includes a default function prototype on about line 160 of tclDate.c. #ifndef TclDatelex int TclDatelex(void); #endif But since this is lex-generated code, I don't think you can just edit tclDate.c. And I don't know how to change tclGetDate.y to generate a static function prototype for this section. It might be that the yylex() function cannot be declared static in tclGetDate.y - login: "techentin"
- mimetype: "text/plain"
- username: "techentin"