From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFD393858C50; Sun, 5 Feb 2023 21:45:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFD393858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675633546; bh=EkbEqTAqd5N+OPFaSojw+byZ41DUZY8wTv1+ENbLAbI=; h=From:To:Subject:Date:From; b=ZrJekF/lKaU8hvskRw45vzDWltZGC8s1cMZolv/CpoDDrRaahkbdHhdIx3qkcRjpl gqVgpQz/9DWC2HOQgc3zYUJD15vWk6vrGw6ot9tITcSfIGBZ59bbUX3Y7jr8kFwC3W kdLhi/JnJDlpify6VHE9gRRWZ/XS+dCiyJ+1f2Io= From: "dje at sourceware dot org" To: elfutils-devel@sourceware.org Subject: [Bug general/30084] New: readelf.c:handle_bit_registers() sets parameter desc without using it. Date: Sun, 05 Feb 2023 21:45:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30084 Bug ID: 30084 Summary: readelf.c:handle_bit_registers() sets parameter desc without using it. Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: dje at sourceware dot org CC: elfutils-devel at sourceware dot org Target Milestone: --- static unsigned int handle_bit_registers (const Ebl_Register_Location *regloc, const void *desc, unsigned int colno) { desc +=3D regloc->offset; ... The local parameter desc is updated but not used. The function explicitly calls abort(), so the implementation is not complete and not intended to be used. The function should add (void) desc; or something to create an artificial use and avoid a spurious warning. --=20 You are receiving this mail because: You are on the CC list for the bug.=