Mantis - libassuan0
Viewing Issue Advanced Details
4628 other trivial always 2010-12-07 19:29 2010-12-08 16:47
c1pher  
dam  
normal  
closed  
no change required  
none    
none  
0004628: assuan-uds.c:211:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
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 [^]
Issue History
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
(0008542)
dam   
2010-12-08 16:19   
From reading your gentoo bug report I get the impression you think OpenCSW is the upstream project for libassuan. This is not the case. OpenCSW is a packaging project like gentoo. If you have upstream bugs regarding libassuan please report them at the libassuan bugtracker site at
  http://gnupg.org/documentation/bts.en.html [^]
(0008543)
c1pher   
2010-12-08 16:45   
My apologies. I submitted it with gnupg. Feel free to close this. Sorry for the confusion.