mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix minor build errors for clang compiler
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
3045a8ef7e
commit
fff4e2fdd4
15 changed files with 19 additions and 15 deletions
|
|
@ -60,10 +60,14 @@ ELSEIF (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
|||
-fvisibility=hidden
|
||||
-fno-fast-math -fno-unsafe-math-optimizations -fdenormal-fp-math=ieee
|
||||
-Wno-type-limits -Wno-unused-result -Wno-unused-variable -Wno-invalid-offsetof -Wno-unused-function
|
||||
-Wno-deprecated-declarations -Wno-unsupported-floating-point-opt -Wno-parentheses-equality -Wno-dynamic-class-memaccess -Wno-deprecated-register
|
||||
-Wno-deprecated-declarations -Wno-parentheses-equality -Wno-dynamic-class-memaccess -Wno-deprecated-register
|
||||
-Wno-expansion-to-defined -Wno-return-type -Wno-overloaded-virtual -Wno-unused-private-field -Wno-deprecated-copy -Wno-atomic-alignment
|
||||
-Wno-ambiguous-reversed-operator -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion -Wno-braced-scalar-init -Wno-unused-parameter
|
||||
)
|
||||
IF (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 10)
|
||||
# this feature supported after clang version 11
|
||||
SET (ESCARGOT_CXXFLAGS ${ESCARGOT_CXXFLAGS} -Wno-unsupported-floating-point-opt)
|
||||
endif()
|
||||
SET (ESCARGOT_CXXFLAGS_DEBUG -O0 -Wall -Wextra -Werror)
|
||||
SET (ESCARGOT_CXXFLAGS_RELEASE -O2 -fno-stack-protector -fno-omit-frame-pointer)
|
||||
SET (ESCARGOT_THIRDPARTY_CFLAGS -w -g3 -fdata-sections -ffunction-sections -fno-omit-frame-pointer -fvisibility=hidden)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
m_primitiveValue = val;
|
||||
}
|
||||
|
||||
virtual bool isBooleanObject() const
|
||||
virtual bool isBooleanObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public:
|
|||
return IS_VALID_TIME(m_primitiveValue);
|
||||
}
|
||||
|
||||
virtual bool isDateObject() const
|
||||
virtual bool isDateObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ public:
|
|||
ErrorObject(ExecutionState& state, Object* proto, String* errorMessage, bool fillStackInfo = true, bool triggerCallback = false);
|
||||
void updateStackTraceData(ExecutionState& state);
|
||||
|
||||
virtual bool isErrorObject() const
|
||||
virtual bool isErrorObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Escargot {
|
|||
|
||||
class ExtendedNativeFunctionObject : public NativeFunctionObject {
|
||||
public:
|
||||
virtual bool isExtendedNativeFunctionObject() const
|
||||
virtual bool isExtendedNativeFunctionObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public:
|
|||
explicit FinalizationRegistryObject(ExecutionState& state, Object* cleanupCallback, Context* realm);
|
||||
explicit FinalizationRegistryObject(ExecutionState& state, Object* proto, Object* cleanupCallback, Context* realm);
|
||||
|
||||
virtual bool isFinalizationRegistryObject() const
|
||||
virtual bool isFinalizationRegistryObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
explicit IteratorObject(ExecutionState& state);
|
||||
explicit IteratorObject(ExecutionState& state, Object* proto);
|
||||
|
||||
virtual bool isIteratorObject() const
|
||||
virtual bool isIteratorObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
m_primitiveValue = data;
|
||||
}
|
||||
|
||||
virtual bool isNumberObject() const
|
||||
virtual bool isNumberObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ public:
|
|||
ASSERT(setter.isEmpty() || setter.isCallable() || setter.isUndefined());
|
||||
}
|
||||
|
||||
virtual bool isJSGetterSetter() const
|
||||
virtual bool isJSGetterSetter() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public:
|
|||
explicit PromiseObject(ExecutionState& state);
|
||||
explicit PromiseObject(ExecutionState& state, Object* proto);
|
||||
|
||||
virtual bool isPromiseObject() const
|
||||
virtual bool isPromiseObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual bool isTypedArrayPrototypeObject() const
|
||||
virtual bool isTypedArrayPrototypeObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
explicit WeakMapObject(ExecutionState& state);
|
||||
explicit WeakMapObject(ExecutionState& state, Object* proto);
|
||||
|
||||
virtual bool isWeakMapObject() const
|
||||
virtual bool isWeakMapObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public:
|
|||
explicit WeakRefObject(ExecutionState& state, PointerValue* target);
|
||||
explicit WeakRefObject(ExecutionState& state, Object* proto, PointerValue* target);
|
||||
|
||||
virtual bool isWeakRefObject() const
|
||||
virtual bool isWeakRefObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public:
|
|||
explicit WeakSetObject(ExecutionState& state);
|
||||
explicit WeakSetObject(ExecutionState& state, Object* proto);
|
||||
|
||||
virtual bool isWeakSetObject() const
|
||||
virtual bool isWeakSetObject() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
2
third_party/walrus
vendored
2
third_party/walrus
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 7800a31eacf47663cdf21c299ae6e6d4d7550af8
|
||||
Subproject commit 75dc3e4eb8ba92a1b064a8b7322be0faaf9d7d68
|
||||
Loading…
Add table
Add a link
Reference in a new issue