[w3m-dev-en 00196] Warnings

From: Ismael Cordeiro (ismael@cordeiro.com)
Date: Wed Jul 12 2000 - 19:33:42 CDT


I've compiled w3m-0.1.11-pre-tb3 with OpenSSL-0.9.5a on FreeBSD 3.4. It's
working fine but I got many warnings when compiling. Here they are:

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c main.c
main.c: In function `srchfor':
main.c:924: warning: variable `SearchString' might be clobbered by `longjmp' or `vfork'
main.c:926: warning: variable `wrapped' might be clobbered by `longjmp' or `vfork'
main.c: In function `srchbak':
main.c:954: warning: variable `SearchString' might be clobbered by `longjmp' or `vfork'
main.c:956: warning: variable `wrapped' might be clobbered by `longjmp' or `vfork'
main.c: In function `srch_nxtprv':
main.c:983: warning: variable `wrapped' might be clobbered by `longjmp' or `vfork'
main.c:980: warning: argument `reverse' might be clobbered by `longjmp' or `vfork'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c file.c
file.c: In function `examineFile':
file.c:196: warning: `slen' might be used uninitialized in this function
file.c: In function `loadGeneralFile':
file.c:724: warning: variable `of' might be clobbered by `longjmp' or `vfork'
file.c:726: warning: variable `b' might be clobbered by `longjmp' or `vfork'
file.c:726: warning: `proc' might be used uninitialized in this function
file.c:726: warning: variable `proc' might be clobbered by `longjmp' or `vfork'
file.c:727: warning: variable `closep' might be clobbered by `longjmp' or `vfork'
file.c:728: warning: variable `tpath' might be clobbered by `longjmp' or `vfork'
file.c:730: warning: `t' might be used uninitialized in this function
file.c:730: warning: variable `t' might be clobbered by `longjmp' or `vfork'
file.c:731: warning: variable `t_buf' might be clobbered by `longjmp' or `vfork'
file.c:732: warning: variable `searchHeader' might be clobbered by `longjmp' or `vfork'
file.c:733: warning: variable `searchHeader_through' might be clobbered by `longjmp' or `vfork'
file.c:734: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'
file.c:736: warning: `ss' might be used uninitialized in this function
file.c:736: warning: variable `ss' might be clobbered by `longjmp' or `vfork'
file.c:737: warning: `realm' might be used uninitialized in this function
file.c:737: warning: variable `realm' might be clobbered by `longjmp' or `vfork'
file.c:738: warning: variable `add_auth_cookie_flag' might be clobbered by `longjmp' or `vfork'
file.c:722: warning: argument `current' might be clobbered by `longjmp' or `vfork'
file.c:722: warning: argument `request' might be clobbered by `longjmp' or `vfork'
file.c: In function `flushline':
file.c:1450: warning: `pass' might be used uninitialized in this function
file.c: In function `HTMLlineproc2body':
file.c:3454: warning: `debug' might be used uninitialized in this function
file.c: In function `HTMLlineproc1':
file.c:4161: warning: suggest parentheses around && within ||
file.c: In function `loadHTMLstream':
file.c:4569: warning: variable `qp_lbuf' might be clobbered by `longjmp' or `vfork'
file.c:4573: warning: `prevtrap' might be used uninitialized in this function
file.c:4573: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'
file.c: In function `loadHTMLString':
file.c:4722: warning: `prevtrap' might be used uninitialized in this function
file.c:4722: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'
file.c: In function `loadBuffer':
file.c:4863: warning: variable `src' might be clobbered by `longjmp' or `vfork'
file.c:4865: warning: variable `qp_lbuf' might be clobbered by `longjmp' or `vfork'
file.c:4866: warning: variable `pre_lbuf' might be clobbered by `longjmp' or `vfork'
file.c:4871: warning: `prevtrap' might be used uninitialized in this function
file.c:4871: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'
file.c:4861: warning: argument `newBuf' might be clobbered by `longjmp' or `vfork'
file.c: In function `save2tmp':
file.c:5305: warning: `prevtrap' might be used uninitialized in this function
file.c:5305: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c buffer.c
buffer.c: In function `writeBufferCache':
buffer.c:596: warning: statement with no effect
buffer.c: In function `readBufferCache':
buffer.c:604: warning: `prevl' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c table.c
table.c: In function `visible_length':
table.c:424: warning: `amp_len' might be used uninitialized in this function
table.c: In function `check_table_height':
table.c:1257: warning: `space' might be used uninitialized in this function
table.c: In function `renderTable':
table.c:1492: warning: `vrulea' might be used uninitialized in this function
table.c:1492: warning: `vrulec' might be used uninitialized in this function
table.c: In function `feed_table_tag':
table.c:2013: warning: suggest parentheses around && within ||
table.c:2014: warning: suggest parentheses around && within ||
table.c:2015: warning: suggest parentheses around && within ||

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c local.c
local.c: In function `dirBuffer':
local.c:28: warning: `nrow' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c frame.c
frame.c: In function `createFrameFile':
frame.c:430: warning: `tmp' might be used uninitialized in this function
frame.c:430: warning: variable `tmp' might be clobbered by `longjmp' or `vfork'
frame.c:436: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c rc.c
rc.c: In function `show_params':
rc.c:495: warning: `t' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c menu.c
menu.c: In function `menu_search_next_previous':
menu.c:1011: warning: `return' with no value, in function returning non-void
menu.c: In function `initMenu':
menu.c:1301: warning: `nmenu' might be used uninitialized in this function
menu.c:1301: warning: `nitem' might be used uninitialized in this function
menu.c:1302: warning: `item' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c url.c
url.c: In function `openSocket':
url.c:286: warning: `trap' might be used uninitialized in this function
url.c:286: warning: variable `trap' might be clobbered by `longjmp' or `vfork'
url.c:382: warning: `result' might be used uninitialized in this function
url.c:382: warning: variable `result' might be clobbered by `longjmp' or `vfork'
url.c: In function `openURL':
url.c:990: warning: `sock' might be used uninitialized in this function
url.c:996: warning: `sslh' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c ftp.c
ftp.c: In function `FtpLogin':
ftp.c:126: warning: suggest parentheses around assignment used as truth value
ftp.c: In function `FTP2tmp':
ftp.c:326: warning: `prevtrap' might be used uninitialized in this function
ftp.c:326: warning: variable `prevtrap' might be clobbered by `longjmp' or `vfork'
ftp.c: In function `openFTP':
ftp.c:383: warning: `pwd' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -I. -c Str.c
Str.c: In function `Sprintf':
Str.c:435: warning: `p' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c alloc.c
alloc.c: In function `GC_expand_hp_inner':
alloc.c:759: warning: suggest parentheses around && within ||

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c reclaim.c
reclaim.c: In function `report_leak':
reclaim.c:31: warning: implicit declaration of function `GC_has_debug_info'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c allchblk.c
allchblk.c: In function `GC_allochblk_nth':
allchblk.c:652: warning: suggest parentheses around && within ||

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -o if_mach ./if_mach.c
./if_mach.c: In function `main':
./if_mach.c:16: warning: implicit declaration of function `execvp'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -o if_not_there ./if_not_there.c
./if_not_there.c: In function `main':
./if_not_there.c:19: warning: implicit declaration of function `execvp'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c mark.c
mark.c: In function `GC_mark_from_mark_stack':
mark.c:432: warning: `limit' might be used uninitialized in this function

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c finalize.c
finalize.c: In function `GC_enqueue_all_finalizers':
finalize.c:622: warning: unused variable `real_link'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c dbg_mlc.c
dbg_mlc.c: In function `GC_debug_realloc':
dbg_mlc.c:590: warning: `result' might be used uninitialized in this function
dbg_mlc.c: In function `GC_check_heap_proc':
dbg_mlc.c:686: warning: suggest parentheses around comparison in operand of &

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c ptr_chck.c
ptr_chck.c: In function `GC_is_valid_displacement':
ptr_chck.c:174: warning: suggest parentheses around && within ||
ptr_chck.c: In function `GC_is_visible':
ptr_chck.c:251: warning: unused variable `result'

gcc -O2 -Wall -I./gc -I/home/ismael/ssl/include/openssl -I/home/ismael/ssl/include -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT -c test.c
test.c: In function `typed_test':
test.c:753: warning: unused variable `dummy'

Ismael

-- 
       ________________________________________________________________
      |                                                                |
      | ISMAEL CORDEIRO            | mailto:ismael@cordeiro.com        |
      | Production sound mixer     | http://www.pubnix.net/~ismael/    |
      | Montréal - Québec - Canada | ftp://ftp.pubnix.net/users/ismael |
      |________________________________________________________________|



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT