Bug 621173 - lvm2: Compilation warning when derefencing
Summary: lvm2: Compilation warning when derefencing
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Zdenek Kabelac
QA Contact: Fedora Extras Quality Assurance
URL: https://www.redhat.com/archives/lvm-d...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-04 12:57 UTC by Ricardo I. Vieitez
Modified: 2010-10-20 20:01 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-20 20:01:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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