Unreviewed, fix EFL build after r17275
Fix error: ignoring #pragma clang diagnostic [-Werror=unknown-pragmas]
* runtime/JSDataViewPrototype.cpp:
Add #if COMPILER(CLANG) and #endif.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog
index d88521f..d1104b1 100644
--- a/Source/JavaScriptCore/ChangeLog
+++ b/Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
+2014-08-19 Jaehun Lim <ljaehun.lim@samsung.com>
+
+ Unreviewed, fix EFL build after r17275
+
+ Fix error: ignoring #pragma clang diagnostic [-Werror=unknown-pragmas]
+
+ * runtime/JSDataViewPrototype.cpp:
+ Add #if COMPILER(CLANG) and #endif.
+
2014-08-19 Michael Saboff <msaboff@apple.com>
Crash in jsc-layout-tests.yaml/js/script-tests/reentrant-caching.js
diff --git a/Source/JavaScriptCore/runtime/JSDataViewPrototype.cpp b/Source/JavaScriptCore/runtime/JSDataViewPrototype.cpp
index 9472d2d..2e73532 100644
--- a/Source/JavaScriptCore/runtime/JSDataViewPrototype.cpp
+++ b/Source/JavaScriptCore/runtime/JSDataViewPrototype.cpp
@@ -208,8 +208,10 @@
return JSValue::encode(jsUndefined());
}
+#if COMPILER(CLANG)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmissing-prototypes"
+#endif
EncodedJSValue JSC_HOST_CALL dataViewProtoFuncGetInt8(ExecState* exec)
{
@@ -290,6 +292,8 @@
{
return setData<Float64Adaptor>(exec);
}
+#if COMPILER(CLANG)
#pragma clang diagnostic pop
+#endif
} // namespace JSC