Bug 272986

Summary: gcc-4.6 warnings with valgrind.h
Product: [Developer tools] valgrind Reporter: Pierre Habouzit <madcoder>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bart.vanassche+kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: proposed patch

Description Pierre Habouzit 2011-05-10 23:17:24 UTC
VALGRIND_* macros that don't return a value generate lots of warnings with gcc 4.6 new errors. Here is a patch I applied in Debian that shuts up most of them. You may want to adapt them so that __attribute__() gets defined to nothing on !gcc compilers though.
Comment 1 Pierre Habouzit 2011-05-10 23:19:38 UTC
Created attachment 59883 [details]
proposed patch
Comment 2 Bart Van Assche 2011-05-11 08:11:47 UTC
A patch that fixes all gcc 4.6 and some gcc 4.5 warnings is attached to #269778.

*** This bug has been marked as a duplicate of bug 269778 ***