Tk Source Code

View Ticket
Login
Ticket UUID: 1012325
Title: compiler warning
Type: Bug Version: obsolete: 8.5a2
Submitter: dgp Created on: 2004-08-19 16:59:58
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-08-20 02:39:57
Resolution: Fixed Closed By: jenglish
    Closed on: 2004-08-19 19:39:57
Description:

"/local/src/tk/unix/tkUnixWm.c", line 4324: warning:
argument #7 is incompatible
 with prototype:
        prototype: pointer to const unsigned char :
"/usr/openwin/include/X11/Xl
ib.h", line 2283
        argument : pointer to const char
"/local/src/tk/unix/tkUnixWm.c", line 4338: warning:
argument #7 is incompatible
 with prototype:
        prototype: pointer to const unsigned char :
"/usr/openwin/include/X11/Xl
ib.h", line 2283
        argument : pointer to char
User Comments: jenglish added on 2004-08-20 02:39:57:
Logged In: YES 
user_id=68433

Cause: trivial signedness mismatch.
Fix: Add "shut up, compiler" casts.

Fixed in tkUnixWm.c r 1.45

dgp added on 2004-08-20 02:23:18:
Logged In: YES 
user_id=80530

tkInt.decls does have an "unsigned" in the prototype for
XChangeProperty

dgp added on 2004-08-20 02:18:06:
Logged In: YES 
user_id=80530


$ cc -V
cc: Forte Developer 7 C 5.4 2002/03/09

On a Solaris 8 system.

$ cc -c -O   -KPIC -I/local/src/tk/unix
-I/local/src/tk/unix/../generic
-I/local/src/tk/unix/../bitmaps -I/local/src/tcl/generic
-I/local/src/tcl/unix -I/usr/openwin/include ... 
/local/src/tk/unix/tkUnixWm.c