add Wextra and Werror in gn args

1. add -Wextra and -Werror to check code format error
2. modify all compiler error

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDQE

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
This commit is contained in:
wengchangcheng
2022-03-24 15:04:57 +08:00
parent 47aaa2cace
commit 4804cd80d3
124 changed files with 1273 additions and 1439 deletions
-1
View File
@@ -19,7 +19,6 @@
#include "ecmascript/ecma_vm.h"
#include "ecmascript/global_env.h"
#include "ecmascript/internal_call_params.h"
#include "ecmascript/js_invoker.h"
#include "ecmascript/js_tagged_value-inl.h"
#include "ecmascript/object_factory.h"
#include "interpreter/fast_runtime_stub-inl.h"