Overview
| Artifact ID: | b9f2eb210c87b3aa0d4e5879876c9b21b547e358 |
|---|---|
| Ticket: | 934697ffffffffffffffffffffffffffffffffff
OSX warnings and errors (3) |
| User & Date: | tauvan on 2004-04-14 03:50:01 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.4.6"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "tauvan"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "OSX warnings and errors (3)"
- type changed to: "Bug"