#54 expect compile warnings

closed-out-of-date
nobody
None
5
2010-08-28
2008-08-27
Larry W. Virden
No

tcl 8.5.4 source, expect cvs head from activestate ftp, and sparc solaris 8 and sun c compiler.

I see these compile warnings. I understand they are not urgent - but some of the implicit declarations could probably be resolved by adding header files.

"../retoglob.c", line 468: warning: identifier redeclared: ExpChopNested
current : function() returning void
previous: function(pointer to pointer to unsigned short, pointer to int, unsigned short, unsigned short) returning void : "../retoglob.c
", line 11
"../retoglob.c", line 473: warning: Prototype mismatch in arg 3 for function ExpChopNested:
function : old style declaration unsigned short promoted to int
prototype: unsigned short
"../retoglob.c", line 473: warning: Prototype mismatch in arg 4 for function ExpChopNested:
function : old style declaration unsigned short promoted to int
prototype: unsigned short
"../retoglob.c", line 519: warning: identifier redeclared: ExpBackslash
current : function() returning unsigned short
previous: function(char, pointer to unsigned short, int) returning unsigned short : "../retoglob.c", line 33
"../retoglob.c", line 523: warning: Prototype mismatch in arg 1 for function ExpBackslash:
function : old style declaration char promoted to int
prototype: char
"../expect.c", line 803: warning: statement not reached
"../exp_regexp.c", line 1265: warning: empty translation unit
"../exp_"../exp_trap.c", line 229: warning: implicit function declaration: exp_dsleep
main_sub.c", line 306: warning: implicit function declaration: exp_tty_cooked_echo
"../exp_pty.c", line 167: warning: implicit function declaration: open
"../exp_trap.c", line 286: warning: implicit function declaration: strcmp
"../exp_trap.c", line 411: warning: implicit function declaration: strlen
"../exp_trap.c", line 413: warning: implicit function declaration: memcpy
"../exp_trap.c", line 488: warning: implicit function declaration: strncmp
"../exp_win.c", line 85: warning: implicit function declaration: ioctl
"../exp_clib.c", line 2281: warning: implicit function declaration: setpgrp
"../exp_clib.c", line 2312: warning: implicit function declaration: exp_init_tty
"../exp_clib.c", line 2342: warning: implicit function declaration: fcntl
"../exp_clib.c", line 2352: warning: implicit function declaration: pipe
"../exp_clib.c", line 2356: warning: implicit function declaration: close
"../exp_clib.c", line 2369: warning: implicit function declaration: fork
"../exp_clib.c", line 2409: warning: implicit function declaration: read
"../exp_clib.c", line 2423: warning: implicit function declaration: write
"../exp_clib.c", line 2450: warning: implicit function declaration: waitpid
"../exp_clib.c", line 2481: warning: implicit function declaration: setsid
"../exp_clib.c", line 2623: warning: implicit function declaration: open
"../exp_clib.c", line 2628: warning: implicit function declaration: ioctl
"../exp_clib.c", line 2677: warning: implicit function declaration: execvp
"../exp_clib.c", line 2793: warning: implicit function declaration: alarm
"../exp_closetcl.c", line 16: warning: empty translation unit
"../exp_chan.c", line 61: warning: initialization type mismatch
"../exp_chan.c", line 610: warning: implicit function declaration: exp_background_channelhandler
"../Dbg.c", line 86: warning: no explicit type given
"../pty_termios.c", line 358: warning: implicit function declaration: open
"../pty_termios.c", line 396: warning: implicit function declaration: expErrnoMsg
"../pty_termios.c", line 653: warning: implicit function declaration: expDiagLogPtrStrStr
"../pty_termios.c", line 669: warning: implicit function declaration: fcntl
"../exp_main_tk.c", line 119: warning: implicit function declaration: Tk_Init2
"../exp_main_tk.c", line 304: warning: implicit function declaration: strrchr
"../exp_main_tk.c", line 353: warning: implicit function declaration: TkCreateFrame
"../exp_main_tk.c", line 390: warning: implicit function declaration: TkpInit
"../exp_main_tk.c", line 432: warning: implicit function declaration: expDiagToStderrSet

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

    • status: open --> closed-out-of-date