From 6419297a4f9e17f54fdf026abe0dc206343a5d99 Mon Sep 17 00:00:00 2001 From: Gongyuhang Date: Wed, 8 Jun 2022 15:38:53 +0800 Subject: [PATCH] Description: Fix the "-Werror, -Wpointer-to-int-cast" warning Details: Add "-Wno-pointer-to-int-cast" for the cflags of "qjs_inner_config" to mask the "-Werror, -Wpointer-to-int-cast" warning Issue: https://gitee.com/openharmony/third_party_quickjs/issues/I5BBJU Signed-off-by: Gongyuhang --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index 83e7f0a..7a0697c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -15,6 +15,7 @@ import("//build/ohos.gni") config("qjs_inner_config") { cflags = [ + "-Wno-pointer-to-int-cast", "-Wno-sign-compare", "-Wno-unused-variable", "-Wno-unused-function", -- Gitee