diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-06-13 11:31:43 +0200 |
---|---|---|
committer | Sergio Ahumada <sahumada@blackberry.com> | 2014-06-13 14:57:07 +0200 |
commit | f7d9266939d0895d9b6fdd8b72c236702652c597 (patch) | |
tree | 5bf449cf6c46ef30adfb0b183d226b370df88a39 | |
parent | 8dfa79c6c0585cb3db9c21658b84f936fdc43252 (diff) |
Fix clang debug-and-release build
Under circumstances clang will leave code that calls the dead default
constructor of Attribute, which causes link time errors.
Change-Id: I265f5b6ee864737c8261cff1439d525000eed1ba
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
-rw-r--r-- | Source/WebCore/dom/Attribute.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WebCore/dom/Attribute.h b/Source/WebCore/dom/Attribute.h index c590f9a03..a7d29f1ec 100644 --- a/Source/WebCore/dom/Attribute.h +++ b/Source/WebCore/dom/Attribute.h @@ -62,9 +62,12 @@ public: void parserSetName(const QualifiedName& name) { m_name = name; } #if COMPILER(MSVC) || COMPILER(CLANG) - // NOTE: This constructor is not actually implemented, it's just defined so MSVC (or clang) + // NOTE: This constructor is not actually used, it's just defined so MSVC (or clang) // will let us use a zero-length array of Attributes. - Attribute(); + Attribute() : m_name(WTF::HashTableDeletedValue) + { + ASSERT_NOT_REACHED(); + } #endif private: |