From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BEB9387085E; Sat, 4 Jul 2020 08:24:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BEB9387085E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593851084; bh=F2asz8xAA+GXKxdLZZhzAhXzN9vyFFCK8DUNcroTwR8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tNFQU6JWbE8h3YOycALLJBAcgyHsTH5XIzstbJdrMdB5Z3wGfVf9hCs6CrdG9klvc erfXW3rLLRdWNBLrlLzaw2cGHD2ni5r9tuxxaMwrVfxmAffRfjxc/hxIZiEOUslFRa xRicCHtuUKe+rz5CinJQnfK5t3O0dmP46Ck1GkHM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96057] -Wreturn-type warning message disappears with -O1 to -Os in unnamed namespace definition Date: Sat, 04 Jul 2020 08:24:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 08:24:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96057 --- Comment #1 from Andrew Pinski --- There was another report about static inline where this happens too. The sa= me reasoning applies here. The function is unused and there for there is no undefined runtime behavior can happen.=