Artifacts Associated With Ticket 442920ffffffffff
Ticket change [910dad49f8] (rid 120566) by lloydlim on 2001-07-19 22:51:53:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Compiling Tcl on FreeBSD 2.x, 3.x, and 4.x gives the following warnings: ./../generic/tclIOSock.c: In function `TclSockMinimumBuffers': ./../generic/tclIOSock.c:103: warning: passing arg 5 of `setsockopt' as signed due to prototype ./../generic/tclIOSock.c:109: warning: passing arg 5 of `setsockopt' as signed due to prototype ./../unix/tclUnixFCmd.c: In function `DoCopyFile': ./../unix/tclUnixFCmd.c:389: warning: passing arg 2 of `mknod' with different width due to prototype ./../unix/tclUnixFCmd.c:395: warning: passing arg 2 of `mkfifo' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `DoCreateDirectory': ./../unix/tclUnixFCmd.c:593: warning: passing arg 1 of `umask' with different width due to prototype ./../unix/tclUnixFCmd.c:594: warning: passing arg 1 of `umask' with different width due to prototype ./../unix/tclUnixFCmd.c:602: warning: passing arg 2 of `mkdir' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `CopyFileAtts': ./../unix/tclUnixFCmd.c:1038: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c:1040: warning: passing arg 2 of `chmod' with different width due to prototype ./../unix/tclUnixFCmd.c: In function `SetPermissionsAttribute': ./../unix/tclUnixFCmd.c:1383: warning: passing arg 2 of `chmod' with different width due to prototype (The tclIOSock.c warnings are only on FreeBSD 2.x and 3.x.) These warnings are caused by the -Wconversion flag. I don't think this warning option is very useful. The bad thing is that these warnings cannot be eliminated by modifying the code. Therefore, I would recommend removing -Wconversion. Here is a patch to remove -Wconversion: --- tcl.m4.old Thu Jul 19 15:16:21 2001 +++ tcl.m4 Thu Jul 19 15:17:38 2001 @@ -605,7 +605,7 @@ CFLAGS_DEBUG=-g CFLAGS_OPTIMIZE=-O if test "$using_gcc" = "yes" ; then - CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int" + CFLAGS_WARNING="-Wall -Wno-implicit-int" else CFLAGS_WARNING="" fi - foundin initialized to: "obsolete: 8.3.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lloydlim"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "gcc warnings on FreeBSD"
- type initialized to: "Bug"
Ticket change [84664d40d8] (rid 117551) by andreas_kupries on 2001-08-01 04:20:33:
- assignee changed to: "mdejong"
Ticket change [218572285a] (rid 130599) by mdejong on 2001-08-13 03:58:48:
- icomment:
Logged In: YES user_id=90858 I don't know about this patch. It removes the -Wconversion flag for all systems. I can't help but think that a couple of casts could be added to deal with the extra warnings instead of just turning off the warnings in the compiler. What is your take on adding casts and possible autoconf tests to deal with this issue?
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [2401d790c1] (rid 131034) by mdejong on 2001-09-10 01:04:15:
- closedate changed to: "2001-09-09T18:04:15"
- closer changed to: "mdejong"
- icomment:
Logged In: YES user_id=90858 I just did a build on FreeBSD 4.X and only got warnings from tclUnixFCmd.c. It looks like the system .h files for functions like mknod() are doing something strange. I don't think this is a Tcl problem and removing the -W just hides the problem. You might want to check into the #ifdefs in system headers like /usr/include/sys/stat.h to see if defines like _POSIX_SOURCE would address this. Closing this bug report.
- login: "mdejong"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "mdejong"