diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-03 21:28:42 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-06 14:03:17 -0700 |
commit | 758a801b66c134361a7b43f7e83f85d1fb800c4c (patch) | |
tree | 35b060c780fcf6e7c268fec47df40c74b5ab8b05 /cmdline | |
parent | e8aae00fa400efbb8f998a5dbf68eb42810889c1 (diff) | |
download | art-758a801b66c134361a7b43f7e83f85d1fb800c4c.zip art-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.gz art-758a801b66c134361a7b43f7e83f85d1fb800c4c.tar.bz2 |
ART: Enable Clang's -Wdeprecated
Replace throw() with noexcept.
Add default copy constructors and copy assignment constructors for
cases with destructors, as the implicit definition is deprecated.
Change-Id: Ice306a3f510b072b00bec4d4360f7c8055135c9d
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/unit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdline/unit.h b/cmdline/unit.h index 6b53b18..ad6a03d 100644 --- a/cmdline/unit.h +++ b/cmdline/unit.h @@ -24,6 +24,7 @@ struct Unit { // Avoid 'Conditional jump or move depends on uninitialised value(s)' errors // when running valgrind by specifying a user-defined constructor. Unit() {} + Unit(const Unit&) = default; ~Unit() {} bool operator==(Unit) const { return true; |