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

Issue 14019004: fix gcc 4.7 compilation errors in base_unittests (Closed)

Created:
7 years, 8 months ago by Mostyn Bramley-Moore
Modified:
7 years, 8 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Daniel Bratell
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

fix gcc 4.7 compilation errors in base_unittests Compiling base_unittests with gcc 4.7 on linux gives these errors: ../../base/logging_unittest.cc: In member function 'virtual void logging::{anonymous}::LoggingTest_BasicLogging_Test::TestBody()': ../../base/logging_unittest.cc:68:172: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] ../../base/logging_unittest.cc: In member function 'virtual void logging::{anonymous}::LoggingTest_LogIsOn_Test::TestBody()': ../../base/logging_unittest.cc:123:174: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] ../../base/logging_unittest.cc:132:174: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] ../../base/logging_unittest.cc:141:174: error: converting 'false' to pointer type for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null] Switching from EXPECT_EQ(false, something) to EXPECT_TRUE(false == something) fixes the problem. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193872

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M base/logging_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mostyn Bramley-Moore
7 years, 8 months ago (2013-04-10 22:16:56 UTC) #1
willchan no longer on Chromium
Sorry for the delay, I apparently forgot to respond yesterday. LGTM. Do you have commit ...
7 years, 8 months ago (2013-04-11 22:01:40 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/14019004/1
7 years, 8 months ago (2013-04-11 22:10:47 UTC) #3
Mostyn Bramley-Moore
On 2013/04/11 22:01:40, willchan wrote: > Sorry for the delay, I apparently forgot to respond ...
7 years, 8 months ago (2013-04-11 22:14:41 UTC) #4
willchan no longer on Chromium
Perfect. On Thu, Apr 11, 2013 at 3:14 PM, <mostynb@opera.com> wrote: > On 2013/04/11 22:01:40, ...
7 years, 8 months ago (2013-04-11 22:15:36 UTC) #5
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 07:31:16 UTC) #6
Message was sent while issue was closed.
Change committed as 193872

Powered by Google App Engine
This is Rietveld 408576698