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

Issue 447513002: Follow-up for https://codereview.chromium.org/419323002/ (Closed)

Created:
6 years, 4 months ago by Nico
Modified:
6 years, 4 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org, dmikurube+memory_chromium.org
Project:
chromium
Visibility:
Public.

Description

Follow-up for https://codereview.chromium.org/419323002/ operator delete apparently isn't throw() with msvs (at least in _HAS_EXCEPTIONS=0 builds like ours). This fixes the two remaining warnings in this file: ..\..\base\allocator/generic_allocators.cc(31,6) : warning(clang): function previously declared with an implicit exception specification redeclared with an explicit exception specification [-Wimplicit-exception-spec-mismatch] void operator delete(void* p) throw() { ^ E:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\new(52,16) : note(clang): previous declaration is here void __CRTDECL operator delete(void *) _THROW0(); ^ In file included from ..\..\base\allocator\allocator_shim.cc:334: ..\..\base\allocator/generic_allocators.cc(39,6) : warning(clang): function previously declared with an implicit exception specification redeclared with an explicit exception specification [-Wimplicit-exception-spec-mismatch] void operator delete[](void* p) throw() { ^ E:\b\depot_tools\win_toolchain\vs2013_files\win8sdk\bin\..\..\VC\include\crtdbg.h(1054,16) : note(clang): previous declaration is here void __CRTDECL operator delete[](void *); ^ 2 warnings generated. There also wasn't a std::nothrow overload for delete, so add that for completeness while here. (For C++14, we might have to add sized overloads too at some point.) BUG=82385 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288129

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M base/allocator/generic_allocators.cc View 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nico
6 years, 4 months ago (2014-08-05 18:47:09 UTC) #1
Nico
ping
6 years, 4 months ago (2014-08-07 02:54:38 UTC) #2
Nico
willchan: ping, that is. On Wed, Aug 6, 2014 at 7:54 PM, <thakis@chromium.org> wrote: > ...
6 years, 4 months ago (2014-08-07 03:04:57 UTC) #3
willchan no longer on Chromium
lgtm, sorry for missing this
6 years, 4 months ago (2014-08-07 17:37:30 UTC) #4
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 4 months ago (2014-08-07 17:43:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/447513002/1
6 years, 4 months ago (2014-08-07 17:56:38 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 20:04:29 UTC) #7
Message was sent while issue was closed.
Change committed as 288129

Powered by Google App Engine
This is Rietveld 408576698