From: SourceForge.net <no...@so...> - 2003-10-21 23:59:10
|
Bugs item #771942, was opened at 2003-07-15 15:58 Message generated for change (Comment added) made by andreas_kupries You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=771942&group_id=10894 Category: 25. Channel System Group: = 8.4.3 Status: Open Resolution: None >Priority: 3 Submitted By: Don Porter (dgp) Assigned to: Andreas Kupries (andreas_kupries) Summary: tclIO.c: compiler warning Initial Comment: SGI compiler warns: "./../generic/tclIO.c", line 3954: warning(1172): subscript out of range memcpy((VOID *) (nextPtr->buf + BUFFER_PADDING - extra), ^ "./../generic/tclIO.c", line 4102: warning(1172): subscript out of range (VOID *) (nextPtr->buf + BUFFER_PADDING - extra), ^ ---------------------------------------------------------------------- >Comment By: Andreas Kupries (andreas_kupries) Date: 2003-10-21 16:55 Message: Logged In: YES user_id=75003 This cannot be fixed I believe. The buf in the ChannelBuffer structure is declared as 4 chars long, and we allocate enough to hold the buffer. The compiler obviously finds a constant subscript which is greater 4 and thus warns about it. We know that the reference is in the allocated range, which is greater than the declared range. I have no idea how to rewrite the code to either fake out the compiler, or to tell the compiler to ignore problems of this type. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=771942&group_id=10894 |