Bug 621173 - lvm2: Compilation warning when derefencing
lvm2: Compilation warning when derefencing
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: lvm2 (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Zdenek Kabelac
Fedora Extras Quality Assurance
https://www.redhat.com/archives/lvm-d...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-04 08:57 EDT by Ricardo I. Vieitez
Modified: 2010-10-20 16:01 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-20 16:01:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ricardo I. Vieitez 2010-08-04 08:57:48 EDT
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 09:27:02 EDT
Patch for this is in review process:

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

Note You need to log in before you can comment on or make changes to this bug.