Menu

#1741 compiler warning

obsolete: 8.5a2
closed-fixed
5
2004-08-19
2004-08-19
Don Porter
No

"/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

Discussion

  • Don Porter

    Don Porter - 2004-08-19

    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

     
  • Don Porter

    Don Porter - 2004-08-19

    Logged In: YES
    user_id=80530

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

     
  • Joe English

    Joe English - 2004-08-19
    • status: open --> closed-fixed
     
  • Joe English

    Joe English - 2004-08-19

    Logged In: YES
    user_id=68433

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

    Fixed in tkUnixWm.c r 1.45