[EFL] Fix build warning in StyleResolver.cpp using gcc 4.7.2
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Dec 2012 14:52:12 +0000 (14:52 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Dec 2012 14:52:12 +0000 (14:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=104262

Patch by Sujin Park <sujjin.park@gmail.com> on 2012-12-07
Reviewed by Alexis Menard.

EFL port treats build warning as compile error and there are
maybe-uninitialized when building with gcc 4.7.2.
This patch adds default case to resolve a build break.

* css/StyleResolver.cpp:
(WebCore::getFontAndGlyphOrientation):

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

Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp

index 2e8eb78..ddc9379 100644 (file)
@@ -1,3 +1,17 @@
+2012-12-07  Sujin Park  <sujjin.park@gmail.com>
+
+        [EFL] Fix build warning in StyleResolver.cpp using gcc 4.7.2
+        https://bugs.webkit.org/show_bug.cgi?id=104262
+
+        Reviewed by Alexis Menard.
+
+        EFL port treats build warning as compile error and there are
+        maybe-uninitialized when building with gcc 4.7.2.
+        This patch adds default case to resolve a build break.
+
+        * css/StyleResolver.cpp:
+        (WebCore::getFontAndGlyphOrientation):
+
 2012-12-06  Alexander Pavlov  <apavlov@chromium.org>
 
         Web Inspector: [Chromium] Ctrl + ']' "Goto right panel" keyboard shortcut doesn't work
index 06f470e..17e0b86 100644 (file)
@@ -1420,6 +1420,11 @@ static void getFontAndGlyphOrientation(const RenderStyle* style, FontOrientation
         fontOrientation = Horizontal;
         glyphOrientation = NonCJKGlyphOrientationVerticalRight;
         return;
+    default:
+        ASSERT_NOT_REACHED();
+        fontOrientation = Horizontal;
+        glyphOrientation = NonCJKGlyphOrientationVerticalRight;
+        return;
     }
 }