Bug 272986 - gcc-4.6 warnings with valgrind.h
Summary: gcc-4.6 warnings with valgrind.h
Status: RESOLVED DUPLICATE of bug 269778
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 23:17 UTC by Pierre Habouzit
Modified: 2011-05-11 08:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
proposed patch (8.05 KB, patch)
2011-05-10 23:19 UTC, Pierre Habouzit
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***