Unreviewed build fix after r174193.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Oct 2014 02:11:07 +0000 (02:11 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Oct 2014 02:11:07 +0000 (02:11 +0000)
Adding a return statement as that function is returning a boolean.

* wtf/TypeCasts.h:
(WTF::TypeCastTraits::isOfType):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174195 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/TypeCasts.h

index 34c3e46..9e64f89 100644 (file)
@@ -1,5 +1,14 @@
 2014-10-01  Christophe Dumez  <cdumez@apple.com>
 
+        Unreviewed build fix after r174193.
+
+        Adding a return statement as that function is returning a boolean.
+
+        * wtf/TypeCasts.h:
+        (WTF::TypeCastTraits::isOfType):
+
+2014-10-01  Christophe Dumez  <cdumez@apple.com>
+
         Fail better when is<>() / downcast<>() is used for an unsupported type
         https://bugs.webkit.org/show_bug.cgi?id=137323
 
index 33db6af..6f76c8c 100644 (file)
@@ -40,6 +40,7 @@ struct TypeCastTraits {
         // to add that specialization:
         // SPECIALIZE_TYPE_TRAITS_BEGIN() / SPECIALIZE_TYPE_TRAITS_END()
         static_assert(std::is_void<ExpectedType>::value, "Missing TypeCastTraits specialization");
+        return false;
     }
 };