Changeset 230616 in webkit


Ignore:
Timestamp:
Apr 12, 2018 5:11:06 PM (6 years ago)
Author:
dbates@webkit.org
Message:

Attmept to fix the Windows build following <https://trac.webkit.org/changeset/230602/>
(https://bugs.webkit.org/show_bug.cgi?id=184386)

Visual Studio cannot prove that all cases in the switch are covered :(
So, add an ASSERT_NOT_REACHED() and a return a value outside of the switch block.

  • loader/cache/CachedResourceLoader.cpp:

(WebCore::destinationForType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230613 r230616  
     12018-04-12  Daniel Bates  <dabates@apple.com>
     2
     3        Attmept to fix the Windows build following <https://trac.webkit.org/changeset/230602/>
     4        (https://bugs.webkit.org/show_bug.cgi?id=184386)
     5
     6        Visual Studio cannot prove that all cases in the switch are covered :(
     7        So, add an ASSERT_NOT_REACHED() and a return a value outside of the switch block.
     8
     9        * loader/cache/CachedResourceLoader.cpp:
     10        (WebCore::destinationForType):
     11
    1122018-04-12  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp

    r230602 r230616  
    767767        return FetchOptions::Destination::EmptyString;
    768768    }
     769    ASSERT_NOT_REACHED();
     770    return FetchOptions::Destination::EmptyString;
    769771}
    770772
Note: See TracChangeset for help on using the changeset viewer.