|
Mantis - libassuan0
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4628 | other | trivial | always | 2010-12-07 19:29 | 2010-12-08 16:47 |
|
|
|||||
| Reporter: | c1pher | Platform: | |||
| Assigned To: | dam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | |||
| Product Build: | Resolution: | no change required | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0004628: assuan-uds.c:211:3: warning: dereferencing type-punned pointer will break strict-aliasing rules | ||||
| Description: |
Small Quality Assurance issue. To quote the Gentoo bug report: The most common warning you will see is probably "dereferencing type- punned pointer will break strict-aliasing rules". The place where it warns is in general not wrong -- what gcc tries to tell you is that you will break the aliasing rules when you dereference the pointer later (unless you cast it back to its original type first). This warning should be interpreted as saying that your interfaces are badly designed, and the correct way to avoid the warning is to redesign them in a way where you do not need to cast between conflicting types. (Even if you often can make this warning go away by changing void** to void*...) >> Please read the actual standard too. The rules about pointer type conversions are at 6.3.2.3. The appropriate paragraphs are paragraphs 1 and 7. http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf. [^] Our bug report is located at: http://bugs.gentoo.org/show_bug.cgi?id=347807 [^] |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
|
|
|||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-12-07 19:29 | c1pher | New Issue | |||
| 2010-12-08 16:14 | dam | Status | new => assigned | ||
| 2010-12-08 16:14 | dam | Assigned To | => dam | ||
| 2010-12-08 16:19 | dam | Note Added: 0008542 | |||
| 2010-12-08 16:19 | dam | Status | assigned => feedback | ||
| 2010-12-08 16:45 | c1pher | Note Added: 0008543 | |||
| 2010-12-08 16:47 | dam | Status | feedback => closed | ||
| 2010-12-08 16:47 | dam | Resolution | open => no change required | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||