From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 07AC83858C2F; Thu, 8 Jun 2023 16:27:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07AC83858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686241634; bh=+tSLjY0kEHYQEdDYD9Gr8mciV3WDRO+DyWLYa6bOd9Q=; h=From:To:Subject:Date:From; b=S5vTBLbEdDKPPl72L5llxsEMn/fHBnJU4fEKbU2J6h2VFJ9Qqm3KilrELQ2DcwdQ6 5lkQ4pdtIg04IngVYwDsS1fgbxkpAjRZv8ES0P9NUBltHXEm8XHszUbiV8hP8cPQQN oe5eHJ1ua/Uqt0hf5D/frMRZzUr6Wa11AyuycE+E= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/110179] New: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast Date: Thu, 08 Jun 2023 16:27:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110179 Bug ID: 110179 Summary: unwind-dw2-fde-dip.c:406: assignment makes integer from pointer without a cast Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- I just tried a build of gcc trunk with clang 16.04 on x86_64.=20 It said: libgcc/unwind-dw2-fde-dip.c:406:16: warning: assignment to =E2=80=98_Unwind= _Ptr=E2=80=99 {aka =E2=80=98long unsigned int=E2=80=99} from =E2=80=98const unsigned char *=E2= =80=99 makes integer from pointer without a cast [-Wint-conversion] Git blame says: 49310a9933 (Florian Weimer 2023-06-06 11:01:07 +0200 406) eh_frame = =3D p + value; This warning might be worth fixing. I suspect a cast will do it.=