Artifacts Associated With Ticket 934697ffffffffffffffffffffffffffffffffff
Ticket change [b9f2eb210c] (rid 129232) by tauvan on 2004-04-14 03:50:01:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5 My (3) suggestion is: change tcl.h however need to be sure of other machines Solves: warning: negative integer implicitly converted to unsigned type Condition: "OSX warnings and errors (1)" not required "OSX warnings and errors (2)" performed quick fix performed trash previous builds (not just clean) Results from (2): w/o (1) Total 10602 Passed 9717 Skipped 858 Failed 27 w/ (1) Total 10602 Passed 9717 Skipped 858 Failed 27 Suggestion: change existing code to this: #if !defined(NO_STDARG) # include <stdarg.h> # undef __va_rounded_size(TYPE) # undef __va_align(AP, TYPE) # define __va_rounded_size(TYPE) ((sizeof (TYPE) + 3) & (_BSD_SIZE_T_)(~3)) # define __va_align(AP, TYPE)\ ((((unsigned long)(AP)) + ((__alignof__ (TYPE) == 16) ? 15 : 3))\ & (_BSD_SIZE_T_)(~((__alignof__ (TYPE) == 16) ? 15 : 3))) # define TCL_VARARGS(type, name) (type name, ...) # define TCL_VARARGS_DEF(type, name) (type name, ...) # define TCL_VARARGS_START(type, name, list) (va_start(list, name), name) #else # include <varargs.h> # undef __va_rounded_size(TYPE) # undef __va_align(AP, TYPE) # define __va_rounded_size(TYPE) ((sizeof (TYPE) + 3) & (_BSD_SIZE_T_)(~3)) # define __va_align(AP, TYPE)\ ((((unsigned long)(AP)) + ((__alignof__ (TYPE) == 16) ? 15 : 3))\ & (_BSD_SIZE_T_)(~((__alignof__ (TYPE) == 16) ? 15 : 3))) # define TCL_VARARGS(type, name) () # define TCL_VARARGS_DEF(type, name) (va_alist) # define TCL_VARARGS_START(type, name, list) \ (va_start(list), va_arg(list, type)) #endif Special Notes: The difference should be &(ing) with typecast of (_BSD_SIZE_T_) Used this typecast to keep same width as sizeof (hopefully) Not sure about other platform headers but I think safe as I think va_arg standard? Results from (3): approx. 40 less warnings w/o (1) Total 10602 Passed 9717 Skipped 858 Failed 27 w/ (1) Total 10602 Passed 9717 Skipped 858 Failed 27 Thanks. - foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tauvan"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "OSX warnings and errors (3)"
- type initialized to: "Bug"
Ticket change [094174268f] (rid 89689) by dkf on 2004-04-14 15:56:28:
- assignee changed to: "dkf"
- closedate changed to: "2004-04-14T08:56:28"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 No. Tcl is not broken and your suggested change will break other platforms. It's also very ugly. If you have a problem with this, file a bug report with Apple about their poor headers. (_BSD_SIZE_T is not defined on Linux, Solaris or Windows.)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dkf"