|
2006-08-29
| ||
| 11:41 | • Closed ticket [992529ffff]: warnings on FreeBSD 4.10-STABLE plus 7 other cha... artifact: cea80e46a6 user: mistachkin | |
|
2005-03-03
| ||
| 16:43 | • Ticket [992529ffff]: 4 changes artifact: 89fdf45e15 user: mistachkin | |
|
2004-07-16
| ||
| 19:42 | • New ticket [992529ffff]. artifact: 937c26d60a user: mistachkin | |
warnings on FreeBSD 4.10-STABLE
Closed / Out of Date992529ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 20 years ago
Descriptionplain2004-07-16 19:42:13
The following prototypes need to be wrapped in the "#ifndef DIRECT_BAUD" define (just as the actual functions themselves are): static intTtyGetBaud _ANSI_ARGS_((unsigned long speed)); static unsigned longTtyGetSpeed _ANSI_ARGS_((int baud)); gcc -pipe -c -O -DTCL_DBGX= -DTCL_UNLOAD_DLLS=1 -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I./../unix -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" ./../unix/tclUnixChan.c ./../unix/tclUnixChan.c:277: warning: `TtyGetBaud' declared `static' but never defined ./../unix/tclUnixChan.c:281: warning: `TtyGetSpeed' declared `static' but never defined I believe these warnings may stem from 32/64-bit differences in the APIs in question. gcc -pipe -c -O -DTCL_DBGX= -DTCL_UNLOAD_DLLS=1 -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I./../unix -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" ./../unix/tclUnixFCmd.c ./../unix/tclUnixFCmd.c: In function `DoCopyFile': ./../unix/tclUnixFCmd.c:434: warning: passing arg 2 of `mknod' with different width due to prototype ./../unix/tclUnixFCmd.c:440: warning: passing arg 2 of `mkfifo' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `DoCreateDirectory': ./../unix/tclUnixFCmd.c:627: warning: passing arg 1 of `umask' with different width due to prototype ./../unix/tclUnixFCmd.c:628: warning: passing arg 1 of `umask' with different width due to prototype ./../unix/tclUnixFCmd.c:636: warning: passing arg 2 of `mkdir' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `DoRemoveDirectory': ./../unix/tclUnixFCmd.c:789: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c:818: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `CopyFileAtts': ./../unix/tclUnixFCmd.c:1125: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c:1127: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `SetPermissionsAttribute': ./../unix/tclUnixFCmd.c:1478: warning: passing arg 2 of `chmod' with different width due to prototype
mistachkinplain2005-03-03 16:43:21
Logged In: YES user_id=113501 These warnings still appear in HEAD on FreeBSD 4.11 STABLE: ./../unix/tclUnixChan.c ./../unix/tclUnixChan.c:277: warning: `TtyGetBaud' declared `static' but never defined ./../unix/tclUnixChan.c:281: warning: `TtyGetSpeed' declared `static' but never defined The other warnings mentioned above seem to have gone away.
mistachkinplain2006-08-29 11:41:35
Logged In: YES user_id=113501 All these warnings are gone from HEAD.
Log in (anonymous is fine) to add a comment.