[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#226459: marked as done (gcc returns "... might be used uninitialized in this function" where it shouldn't)



Your message dated Sat, 17 Apr 2004 12:48:20 +0200
with message-id <16513.2932.447103.911213@gargle.gargle.HOWL>
and subject line unreproducible report, no feedback from bug submitter
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Jan 2004 22:17:46 +0000
>From chris@gnome-de.org Tue Jan 06 16:17:37 2004
Return-path: <chris@gnome-de.org>
Received: from mail.bytecamp.net [212.204.60.9] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AdyTh-0001aq-00; Tue, 06 Jan 2004 15:11:05 -0600
Received: (qmail 93628 invoked by uid 88); 6 Jan 2004 21:11:04 -0000
Received: from pd9e961b4.dip.t-dialin.net (HELO ?192.168.123.111?) (217.233.97.180)
  by mail.bytecamp.net with SMTP; 6 Jan 2004 21:11:04 -0000
Subject: gcc returns "... might be used uninitialized in this function"
	where it shouldn't
From: Christian Neumair <chris@gnome-de.org>
To: submit@bugs.debian.org
Content-Type: text/plain
Message-Id: <1073423007.14573.15.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.5 
Date: Tue, 06 Jan 2004 22:03:27 +0100
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_5 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_5
X-Spam-Level: 

Package: gcc-3.2
Version: 3.2.3-9
Severity: minor
Tags: sid

Unfortunately I wasn't able to track down this issue.
The code snippet in question is from the nautilus package:

=== beginning ===
static gboolean
select_range (NautilusIconContainer *container,
              NautilusIcon *icon1,
              NautilusIcon *icon2)
{
        gboolean selection_changed;
        GList *p;
        NautilusIcon *icon;
        NautilusIcon *unmatched_icon;
        gboolean select;
                                                                                
        selection_changed = FALSE;
                                                                                
        unmatched_icon = NULL;
        select = FALSE;
        for (p = container->details->icons; p != NULL; p = p->next) {
                icon = p->data;
                                                                                
                if (unmatched_icon == NULL) {
                        if (icon == icon1) {
                                unmatched_icon = icon2;
                                select = TRUE;
                        } else if (icon == icon2) {
                                unmatched_icon = icon1;
                                select = TRUE;
                        }
                }
                                                                                
                selection_changed |= icon_set_selected
                        (container, icon, select);
                                                                                
                if (unmatched_icon != NULL && icon == unmatched_icon) {
                        select = FALSE;
                }
                                                                                
        }
=== (...) snap ===
}
=== end ===

gcc returns:
nautilus-icon-container.c: In function `handle_icon_button_press':
nautilus-icon-container.c:1768: warning: `selection_changed' might be used uninitialized in this function

obviously it actually IS always initialized

the whole file can be found under:
http://makeashorterlink.com/?S40724BF6

Do you need any additional information?

regs,
 Chris


---------------------------------------
Received: (at 226459-done) by bugs.debian.org; 17 Apr 2004 10:52:10 +0000
>From doko@cs.tu-berlin.de Sat Apr 17 03:52:10 2004
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BEnQf-0003c0-00; Sat, 17 Apr 2004 03:52:10 -0700
Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id MAA16136
	for <226459-done@bugs.debian.org>; Sat, 17 Apr 2004 12:48:20 +0200 (MET DST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id i3HAmKZk025348;
	Sat, 17 Apr 2004 12:48:20 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16513.2932.447103.911213@gargle.gargle.HOWL>
Date: Sat, 17 Apr 2004 12:48:20 +0200
To: 226459-done@bugs.debian.org
Subject: unreproducible report, no feedback from bug submitter
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Delivered-To: 226459-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

unreproducible report, no feedback from bug submitter, closing the
report.



Reply to: