Bug 621173

Summary: lvm2: Compilation warning when derefencing
Product: [Fedora] Fedora Reporter: Ricardo I. Vieitez <ricardo.rhbugzilla>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, mbroz, msnitzer, prajnoha, prockai, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://www.redhat.com/archives/lvm-devel/2010-July/msg00039.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-20 20:01:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ricardo I. Vieitez 2010-08-04 12:57:48 UTC
Description of problem:
There are compilation warnings that are a sign of potential application bugs. They should be corrected in future releases.

Version-Release number of selected component (if applicable): 2.02.70. Older versions affected, too.



How reproducible:
Always


Steps to Reproduce:
1. Compile the source code.
  
Actual results:
Warnings are displayed.

Expected results:
There should be no warning. Dereferencing if needed should be done with an explicit cast.

Additional info:

 * QA Notice: Package has poor programming practices which may compile fine but exhibit random runtime failures.
 * device/device.c:81: warning: dereferencing pointer ‘part’ does break strict-aliasing rules
 * device/device.c:81: warning: dereferencing pointer ‘part’ does break strict-aliasing rules

Comment 1 Zdenek Kabelac 2010-08-04 13:27:02 UTC
Patch for this is in review process:

https://www.redhat.com/archives/lvm-devel/2010-July/msg00039.html