From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Current git unitialized vars warnings. Date: Wed, 1 Jul 2009 12:43:26 -0400 Message-ID: <20090701164327.JW87G.291209.root@cdptpa-web25-z02> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1023802_13996794.1246466606861" X-Trace: ger.gmane.org 1246467008 16355 80.91.229.12 (1 Jul 2009 16:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 16:50:08 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jul 01 18:50:01 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MM2zb-00030T-OV for guile-devel@m.gmane.org; Wed, 01 Jul 2009 18:49:08 +0200 Original-Received: from localhost ([127.0.0.1]:41331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM2zb-0001W6-5h for guile-devel@m.gmane.org; Wed, 01 Jul 2009 12:49:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM2uC-0006Sf-3M for guile-devel@gnu.org; Wed, 01 Jul 2009 12:43:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM2uB-0006SJ-8R for guile-devel@gnu.org; Wed, 01 Jul 2009 12:43:31 -0400 Original-Received: from [199.232.76.173] (port=34548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM2uB-0006SF-1v for guile-devel@gnu.org; Wed, 01 Jul 2009 12:43:31 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.122]:61344) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM2uA-0005l3-Hz for guile-devel@gnu.org; Wed, 01 Jul 2009 12:43:30 -0400 Original-Received: from cdptpa-web25-z02 ([10.127.132.176]) by cdptpa-smta02.mail.rr.com with ESMTP id <20090701164327063.JHIO11389@cdptpa-smta02.mail.rr.com> for ; Wed, 1 Jul 2009 16:43:27 +0000 X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8814 Archived-At: ------=_Part_1023802_13996794.1246466606861 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit The new vector vm code gives me quite a few "possible use uninitialized" warnings. On debian Etch: $ gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Patch attached (I hope). -Dale ------=_Part_1023802_13996794.1246466606861 Content-Type: application/octet-stream; name=init-vars.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=init-vars.patch diff --git a/libguile/vm-i-scheme.c b/libguile/vm-i-scheme.c index 5de39a2..b036a5b 100644 --- a/libguile/vm-i-scheme.c +++ b/libguile/vm-i-scheme.c @@ -281,7 +281,7 @@ VM_DEFINE_INSTRUCTION (108, slot_set, "slot-set", 0, 3, 0) VM_DEFINE_FUNCTION (109, vector_ref, "vector-ref", 2) { - long i; + long i=0; ARGS2 (vect, idx); if (SCM_LIKELY (SCM_I_IS_VECTOR (vect) && SCM_I_INUMP (idx) @@ -294,7 +294,7 @@ VM_DEFINE_FUNCTION (109, vector_ref, "vector-ref", 2) VM_DEFINE_INSTRUCTION (110, vector_set, "vector-set", 0, 3, 0) { - long i; + long i=0; SCM vect, idx, val; POP (val); POP (idx); POP (vect); if (SCM_LIKELY (SCM_I_IS_VECTOR (vect) @@ -346,7 +346,7 @@ BV_REF_WITH_ENDIANNESS (f64, ieee_double) #define BV_FIXABLE_INT_REF(stem, fn_stem, type, size) \ { \ - long i; \ + long i=0; \ ARGS2 (bv, idx); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ @@ -361,7 +361,7 @@ BV_REF_WITH_ENDIANNESS (f64, ieee_double) #define BV_INT_REF(stem, type, size) \ { \ - long i; \ + long i=0; \ ARGS2 (bv, idx); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ @@ -380,7 +380,7 @@ BV_REF_WITH_ENDIANNESS (f64, ieee_double) #define BV_FLOAT_REF(stem, fn_stem, type, size) \ { \ - long i; \ + long i=0; \ ARGS2 (bv, idx); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ @@ -454,7 +454,7 @@ BV_SET_WITH_ENDIANNESS (f64, ieee_double) #define BV_FIXABLE_INT_SET(stem, fn_stem, type, min, max, size) \ { \ - long i, j; \ + long i=0, j=0; \ SCM bv, idx, val; POP (val); POP (idx); POP (bv); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ @@ -472,7 +472,7 @@ BV_SET_WITH_ENDIANNESS (f64, ieee_double) #define BV_INT_SET(stem, type, size) \ { \ - long i; \ + long i=0; \ SCM bv, idx, val; POP (val); POP (idx); POP (bv); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ @@ -487,7 +487,7 @@ BV_SET_WITH_ENDIANNESS (f64, ieee_double) #define BV_FLOAT_SET(stem, fn_stem, type, size) \ { \ - long i; \ + long i=0; \ SCM bv, idx, val; POP (val); POP (idx); POP (bv); \ VM_VALIDATE_BYTEVECTOR (bv); \ if (SCM_LIKELY (SCM_I_INUMP (idx) \ ------=_Part_1023802_13996794.1246466606861--