Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1406)

Issue 10537037: Fix gcc 4.7 building problems - cont' (Closed)

Created:
8 years, 6 months ago by Han
Modified:
8 years, 6 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jochen+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, asharif1
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix gcc 4.7 building problems. Narrowing conversion in initiliazation list now raises an 'ill-formed conversion' warning, which causes error when -Werror is given, fixed by: - adding static_cast for narrowing conversion in simple(short) initiliazation lists - adding '-Wno-narrowing' flag to compiler for long/bulk initilization lists BUG=None TEST=Built successfully using GCC-4.7 under linux

Patch Set 1 #

Total comments: 7

Patch Set 2 : Modified per Ami's comments. #

Patch Set 3 : Modified per Brett and Peter's comment #

Total comments: 7

Patch Set 4 : Changed data type in webcursor_gtk_data.h #

Patch Set 5 : Modified per Aaron's comment #

Total comments: 6

Patch Set 6 : Modified per Peter's comments #

Patch Set 7 : Added license header to webcursor_gtk_data.h #

Patch Set 8 : Reverted "adding license header to webcursor_gtk_data.h" #

Patch Set 9 : Reverted "adding license header to webcursor_gtk_data.h" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -38 lines) Patch
M chrome/browser/extensions/settings/settings_frontend.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M media/base/simd/convert_rgb_to_yuv_sse2.cc View 1 2 3 4 1 chunk +11 lines, -6 lines 0 comments Download
M webkit/glue/webcursor_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/glue/webcursor_gtk_data.h View 1 2 3 4 5 7 20 chunks +21 lines, -21 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
Han
Hi can you take a look at this CL? Scott - 'chrome/' Brett - 'content/' ...
8 years, 6 months ago (2012-06-06 21:27:26 UTC) #1
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10537037/diff/1/media/base/simd/convert_rgb_to_yuv_sse2.cc File media/base/simd/convert_rgb_to_yuv_sse2.cc (right): https://chromiumcodereview.appspot.com/10537037/diff/1/media/base/simd/convert_rgb_to_yuv_sse2.cc#newcode27 media/base/simd/convert_rgb_to_yuv_sse2.cc:27: -INT16_FIX(0.071), -INT16_FIX(0.368), INT16_FIX(0.439), 0, nit: add leading space https://chromiumcodereview.appspot.com/10537037/diff/1/media/media.gyp ...
8 years, 6 months ago (2012-06-06 21:34:08 UTC) #2
brettw
https://chromiumcodereview.appspot.com/10537037/diff/1/content/content.gyp File content/content.gyp (right): https://chromiumcodereview.appspot.com/10537037/diff/1/content/content.gyp#newcode82 content/content.gyp:82: 'cflags+': ['-Wno-narrowing'], I'm trying to understand why this is ...
8 years, 6 months ago (2012-06-06 21:52:44 UTC) #3
Han
Hi Brett, thanks! https://chromiumcodereview.appspot.com/10537037/diff/1/content/content.gyp File content/content.gyp (right): https://chromiumcodereview.appspot.com/10537037/diff/1/content/content.gyp#newcode82 content/content.gyp:82: 'cflags+': ['-Wno-narrowing'], On 2012/06/06 21:52:44, brettw ...
8 years, 6 months ago (2012-06-06 22:11:25 UTC) #4
Peter Kasting
On 2012/06/06 22:11:25, Han wrote: > Hi Brett thans! The thing is this - > ...
8 years, 6 months ago (2012-06-06 22:18:13 UTC) #5
Han
Hi Ami, thanks! https://chromiumcodereview.appspot.com/10537037/diff/1/media/media.gyp File media/media.gyp (right): https://chromiumcodereview.appspot.com/10537037/diff/1/media/media.gyp#newcode16 media/media.gyp:16: 'cflags_cc+': ['-Wno-narrowing'], On 2012/06/06 21:34:09, Ami ...
8 years, 6 months ago (2012-06-06 22:18:23 UTC) #6
Ami GONE FROM CHROMIUM
LGTM for media/
8 years, 6 months ago (2012-06-06 22:19:47 UTC) #7
brettw
I agree with Peter, this will have to be done at some point anyway, so ...
8 years, 6 months ago (2012-06-06 22:21:24 UTC) #8
Han
On 2012/06/06 22:21:24, brettw wrote: > I agree with Peter, this will have to be ...
8 years, 6 months ago (2012-06-06 23:04:16 UTC) #9
brettw
https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h#newcode35 webkit/glue/webcursor_gtk_data.h:35: #define CC(X) (X>=0x80 ? static_cast<char>(X) : X) Is there ...
8 years, 6 months ago (2012-06-06 23:05:38 UTC) #10
Peter Kasting
https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h#newcode35 webkit/glue/webcursor_gtk_data.h:35: #define CC(X) (X>=0x80 ? static_cast<char>(X) : X) On 2012/06/06 ...
8 years, 6 months ago (2012-06-06 23:07:33 UTC) #11
Han
Hi Brett, thanks! https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h#newcode35 webkit/glue/webcursor_gtk_data.h:35: #define CC(X) (X>=0x80 ? static_cast<char>(X) : ...
8 years, 6 months ago (2012-06-06 23:11:40 UTC) #12
Han
Hi Peter, thanks! https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h File webkit/glue/webcursor_gtk_data.h (right): https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h#newcode35 webkit/glue/webcursor_gtk_data.h:35: #define CC(X) (X>=0x80 ? static_cast<char>(X) : ...
8 years, 6 months ago (2012-06-06 23:15:19 UTC) #13
Peter Kasting
On 2012/06/06 23:15:19, Han wrote: > Hi Peter, thanks! > > https://chromiumcodereview.appspot.com/10537037/diff/3003/webkit/glue/webcursor_gtk_data.h > File webkit/glue/webcursor_gtk_data.h ...
8 years, 6 months ago (2012-06-06 23:17:06 UTC) #14
brettw
Just use static_cast(). It does what you want. Separating it out implies to me that ...
8 years, 6 months ago (2012-06-06 23:17:15 UTC) #15
Peter Kasting
Also did you try using unsigned char (or uint8, or whatever) instead? Seems like then ...
8 years, 6 months ago (2012-06-06 23:19:11 UTC) #16
Peter Kasting
On 2012/06/06 23:19:11, Peter Kasting wrote: > Also did you try using unsigned char (or ...
8 years, 6 months ago (2012-06-06 23:22:23 UTC) #17
Han
On 2012/06/06 23:22:23, Peter Kasting wrote: > On 2012/06/06 23:19:11, Peter Kasting wrote: > > ...
8 years, 6 months ago (2012-06-06 23:34:15 UTC) #18
Han
On 2012/06/06 23:34:15, Han wrote: > On 2012/06/06 23:22:23, Peter Kasting wrote: > > On ...
8 years, 6 months ago (2012-06-06 23:42:21 UTC) #19
Peter Kasting
On 2012/06/06 23:42:21, Han wrote: > On 2012/06/06 23:34:15, Han wrote: > > On 2012/06/06 ...
8 years, 6 months ago (2012-06-07 00:13:07 UTC) #20
Han
On 2012/06/07 00:13:07, Peter Kasting wrote: > On 2012/06/06 23:42:21, Han wrote: > > On ...
8 years, 6 months ago (2012-06-07 00:51:29 UTC) #21
Peter Kasting
On Wed, Jun 6, 2012 at 5:51 PM, <shenhan@google.com> wrote: > Hi Peter, I changed ...
8 years, 6 months ago (2012-06-07 01:03:37 UTC) #22
Han
On 2012/06/07 01:03:37, Peter Kasting wrote: > On Wed, Jun 6, 2012 at 5:51 PM, ...
8 years, 6 months ago (2012-06-07 01:18:45 UTC) #23
sky
I'm swapped myself with Aaron as he should review extensions changes.
8 years, 6 months ago (2012-06-07 03:51:37 UTC) #24
Aaron Boodman
lgtm http://codereview.chromium.org/10537037/diff/3003/chrome/browser/extensions/settings/settings_frontend.cc File chrome/browser/extensions/settings/settings_frontend.cc (right): http://codereview.chromium.org/10537037/diff/3003/chrome/browser/extensions/settings/settings_frontend.cc#newcode95 chrome/browser/extensions/settings/settings_frontend.cc:95: static_cast<size_t>(UINT_MAX), std::numeric_limits<size_t>::max() ?
8 years, 6 months ago (2012-06-07 07:40:03 UTC) #25
Han
Hi Aaron, thanks! http://codereview.chromium.org/10537037/diff/3003/chrome/browser/extensions/settings/settings_frontend.cc File chrome/browser/extensions/settings/settings_frontend.cc (right): http://codereview.chromium.org/10537037/diff/3003/chrome/browser/extensions/settings/settings_frontend.cc#newcode95 chrome/browser/extensions/settings/settings_frontend.cc:95: static_cast<size_t>(UINT_MAX), On 2012/06/07 07:40:03, Aaron Boodman ...
8 years, 6 months ago (2012-06-07 18:02:59 UTC) #26
Han
On 2012/06/07 01:03:37, Peter Kasting wrote: > On Wed, Jun 6, 2012 at 5:51 PM, ...
8 years, 6 months ago (2012-06-07 18:05:15 UTC) #27
Peter Kasting
LGTM http://codereview.chromium.org/10537037/diff/5007/content/browser/renderer_host/render_widget_host_view_gtk.cc File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/10537037/diff/5007/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode86 content/browser/renderer_host/render_widget_host_view_gtk.cc:86: NULL, reinterpret_cast<const char*>(moz_spinning_bits), 32, 32); Nit: Use const ...
8 years, 6 months ago (2012-06-07 18:09:52 UTC) #28
Han Shen
Thank, Peter. http://codereview.chromium.org/10537037/diff/5007/content/browser/renderer_host/render_widget_host_view_gtk.cc File content/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/10537037/diff/5007/content/browser/renderer_host/render_widget_host_view_gtk.cc#newcode86 content/browser/renderer_host/render_widget_host_view_gtk.cc:86: NULL, reinterpret_cast<const char*>(moz_spinning_bits), 32, 32); On 2012/06/07 ...
8 years, 6 months ago (2012-06-07 19:09:09 UTC) #29
Peter Kasting
LGTM, thanks!
8 years, 6 months ago (2012-06-07 19:26:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shenhan@google.com/10537037/5009
8 years, 6 months ago (2012-06-07 20:39:00 UTC) #31
commit-bot: I haz the power
Presubmit check for 10537037-5009 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-07 20:39:03 UTC) #32
Han Shen
On 2012/06/07 20:39:03, I haz the power (commit-bot) wrote: > Presubmit check for 10537037-5009 failed ...
8 years, 6 months ago (2012-06-07 20:43:46 UTC) #33
brettw
lgtm
8 years, 6 months ago (2012-06-07 21:19:20 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shenhan@google.com/10537037/5009
8 years, 6 months ago (2012-06-07 21:28:03 UTC) #35
commit-bot: I haz the power
Presubmit check for 10537037-5009 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-07 21:28:06 UTC) #36
Han
On 2012/06/07 21:28:06, I haz the power (commit-bot) wrote: > Presubmit check for 10537037-5009 failed ...
8 years, 6 months ago (2012-06-07 21:36:46 UTC) #37
brettw
That's wrong. That file has a different license and you shouldn't put a different one ...
8 years, 6 months ago (2012-06-07 21:39:54 UTC) #38
brettw
That's wrong. That file has a different license and you shouldn't put a different one ...
8 years, 6 months ago (2012-06-07 21:39:54 UTC) #39
Peter Kasting
On 2012/06/07 21:39:54, brettw wrote: > That's wrong. That file has a different license and ...
8 years, 6 months ago (2012-06-07 21:41:27 UTC) #40
Han
On 2012/06/07 21:41:27, Peter Kasting wrote: > On 2012/06/07 21:39:54, brettw wrote: > > That's ...
8 years, 6 months ago (2012-06-07 21:48:19 UTC) #41
mal
Putting the Chromium copyright on it is the wrong thing to do. I don't see ...
8 years, 6 months ago (2012-06-08 17:59:58 UTC) #42
Han
On 2012/06/08 17:59:58, mal wrote: > Putting the Chromium copyright on it is the wrong ...
8 years, 6 months ago (2012-06-08 18:21:51 UTC) #43
Peter Kasting
I'll land this for you.
8 years, 6 months ago (2012-06-08 18:42:04 UTC) #44
Peter Kasting
8 years, 6 months ago (2012-06-08 19:59:04 UTC) #45
On 2012/06/08 18:42:04, Peter Kasting wrote:
> I'll land this for you.

Now trying the patch on https://chromiumcodereview.appspot.com/10543080 ; will
submit once tryjobs pass.

Closing this CL in favor of that.

Powered by Google App Engine
This is Rietveld 408576698