Changeset 151406 in webkit


Ignore:
Timestamp:
Jun 10, 2013 3:10:09 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2][CoordinatedGraphics] Add default case to switches to fix strict build
https://bugs.webkit.org/show_bug.cgi?id=117416

Patch by Sergio Correia <Sergio Correia> on 2013-06-10
Reviewed by Noam Rosenthal.

This patch fixes a strict build by asserting on the default case of two
switch statements where gcc was previously complaining of unhandled cases.

  • Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:

(CoreIPC::::encode):
(CoreIPC::::decode):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r151403 r151406  
     12013-06-10  Sergio Correia  <sergio.correia@openbossa.org>
     2
     3        [WK2][CoordinatedGraphics] Add default case to switches to fix strict build
     4        https://bugs.webkit.org/show_bug.cgi?id=117416
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        This patch fixes a strict build by asserting on the default case of two
     9        switch statements where gcc was previously complaining of unhandled cases.
     10
     11        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
     12        (CoreIPC::::encode):
     13        (CoreIPC::::decode):
     14
    1152013-06-10  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp

    r151364 r151406  
    183183                    CustomFilterTransformParameter* transformParameter = static_cast<CustomFilterTransformParameter*>(parameter.get());
    184184                    ArgumentCoder<TransformOperations>::encode(encoder, transformParameter->operations());
     185                    break;
     186                }
     187                default: {
     188                    ASSERT_NOT_REACHED();
    185189                    break;
    186190                }
     
    320324                    break;
    321325                }
     326                default: {
     327                    ASSERT_NOT_REACHED();
     328                    return false;
     329                }
    322330                }
    323331            }
Note: See TracChangeset for help on using the changeset viewer.