DescriptionFixing gcc 4.7 building problems.
a) - gcc-4.7 improved the implicit headers that it includes. with
<4.7, the gthr-default.h file always pulls in unistd.h. with >=4.7,
they avoided that include when possible. so code that isn't including
unistd.h itself but needs it now breaks.
b) - narrowing conversion in initiliazation list now raises an
'ill-formed conversion' warning, which causes error when -Werror is
given.
[THIS PART IS NOW REVERTED IN THE PATCH} c) - included patches from pastebin - http://pastebin.com/raw.php?i=p3UKs7Cg
Note - this may not be fixing all the gcc 4.7 build problems for all
parts, but rather than submitting one big-fix-for-all CL, we'd better
do it incrementally (given that all the modification is reasonable and
minor) so that at least some parts get a successful gcc 4.7 build.
BUG=None
TEST=Built successfully using GCC-4.7 under chromium chroot
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140470
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : #Patch Set 4 : Modified per Adam's comments #
Total comments: 8
Patch Set 5 : Modified per Brett's comments #
Total comments: 2
Patch Set 6 : Modified per Mattias' comments #Patch Set 7 : Modified per Mattias' comments #
Total comments: 1
Patch Set 8 : Reverted patch from pastebin and modified according to James' comments #Patch Set 9 : Reverted patch from pastebin and modified according to James' comments #
Total comments: 2
Patch Set 10 : Removed spurious newline from webcursor_gtk_data.h #
Total comments: 3
Patch Set 11 : Wrap unisdt.h using OS_POSIX macro #
Messages
Total messages: 35 (0 generated)
|