From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126321 invoked by alias); 4 Oct 2018 06:28:57 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 126311 invoked by uid 89); 4 Oct 2018 06:28:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:r77-v6s, H*UA:x64, H*UA:Win64, H*u:x64 X-HELO: mail-pg1-f170.google.com Received: from mail-pg1-f170.google.com (HELO mail-pg1-f170.google.com) (209.85.215.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Oct 2018 06:28:55 +0000 Received: by mail-pg1-f170.google.com with SMTP id r77-v6so2671403pgr.5 for ; Wed, 03 Oct 2018 23:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=4hSEI1ZxoCUUqjvRRKITeK+W6ymElCIVt18fALbCkGk=; b=Zbs5yrQ1nQw2l1of2ssGtn6hLIBKSKg7esknM3QhHdZIOE80+YQmkI7d7724zIKj/U tV9KLefo3+695TTMqtUgs/mHRCXje4kvgyUE5VpAA4d59hvUtZvhXTcRUxipre5FYEtC QTLeuyDqCyM3vS6U8ln5+VCAqxPvAH5qDPAGFLjGuShedkCzz7QW0ESxAS/zaLODArZU fUCg8JgzIjLLn+FTQDJkCX1U6g2o6Y6gK8781iah4yVTv96dNkSUCOVIhbz6SgCaX9RW 4vHs4Thq0vpsLtEz842E5YOaSexj4Wsk4rMWwmVrG6NKRGGDbPZwt+wcHCDW1bkAg04E kMsg== Return-Path: Received: from [0.0.0.0] ([118.193.244.207]) by smtp.googlemail.com with ESMTPSA id a64-v6sm5493168pfe.32.2018.10.03.23.28.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 23:28:52 -0700 (PDT) To: GDB Development From: asmwarrior Subject: gcc warning with "some variable may be used uninitialized in this function [-Wmaybe-uninitialized]" when building under msys Message-ID: <46b498a8-ba44-3f67-783d-85cd5ac8f0c9@gmail.com> Date: Thu, 04 Oct 2018 06:28:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Thunderbird/54.0a1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00000.txt.bz2 Hi, when building gdb git head(which is 875e539851bb2702f3292f819e220545a8776242 as 2018-10-04) under msys+gcc 5.4, I see such warning: CXX infrun.o In file included from ../../binutils-gdb/gdb/inferior.h:49:0, from ../../binutils-gdb/gdb/infrun.c:26: ../../binutils-gdb/gdb/progspace.h: In function 'void handle_vfork_child_exec_or_exit(int)': ../../binutils-gdb/gdb/progspace.h:285:47: warning: '*((void*)(& maybe_restore_inferior)+16).scoped_restore_current_program_space::m_saved_pspace' may be used uninitialized in this function [-Wmaybe-uninitialized] { set_current_program_space (m_saved_pspace); } ^ ../../binutils-gdb/gdb/infrun.c:931:6: note: '*((void*)(& maybe_restore_inferior)+16).scoped_restore_current_program_space::m_saved_pspace' was declared here maybe_restore_inferior; ^ CXX inline-frame.o Hope you devs can fix this. Thanks. Asmwarrior