From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [180.246.144.41]) by gnuweeb.org (Postfix) with ESMTPSA id 60339809EA; Sun, 21 Aug 2022 11:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1661081129; bh=N4kka5E1vXWebxDff6svqNEbhUjV6vO7DewdID3Oh74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nd0ZT70ZYWrYugdl6j0P1/DhEEUP4nOUXkN6u/DzVTcwdrNBXyGc52F8pw4LOleEk oXS6xZggjDsF14dfprFcQQIb4Kujh4hoWZqvDCCba35kix8OtZw7hrdZ9wAcvBOrnZ +SuWa0mCXn7fUbnXZEDfYNlmswgliIRGH4JUQXZKbKFSCtdOmy5DeuvEgQlG1qi3UA yrBZDPpjL1AwXPleE8kvmMPUiYi5eofp3ZyZbAmh9baLDTGj4ZauLS5pg+8mUvi0KA fLPYwwd6C0dhr8QqMXCPjjP1pR6f9xQhEGJvbYke7nmHhliLK3OarSV7e7pQu4XWE8 BCqCXRUysFwiw== From: Ammar Faizi To: Alviro Iskandar Setiawan Cc: Ammar Faizi , Muhammad Rizki , Kanna Scarlet , GNU/Weeb Mailing List Subject: [PATCH v1 05/22] binding.gyp: Add `-Wno-enum-constexpr-conversion` flag Date: Sun, 21 Aug 2022 18:24:36 +0700 Message-Id: <20220821112453.3026255-6-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220821112453.3026255-1-ammarfaizi2@gnuweeb.org> References: <20220821112453.3026255-1-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Building with clang-16, yields the following error: napi.h:1173:7: error: integer value -1 is outside the valid range of \ values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] static_cast(-1); ^ 1 error generated. Just ignore `-Wenum-constexpr-conversion` for now. I have reported this to upstream, see the link below. Link: https://github.com/nodejs/node-addon-api/issues/1198 Signed-off-by: Ammar Faizi --- binding.gyp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding.gyp b/binding.gyp index 4cdceac..1e4e8aa 100644 --- a/binding.gyp +++ b/binding.gyp @@ -3,10 +3,10 @@ { "target_name": "chnet", "cflags": [ - "-fno-exceptions -ggdb3" + "-fno-exceptions -ggdb3 -Wno-enum-constexpr-conversion" ], "cflags_cc": [ - "-fno-exceptions -ggdb3" + "-fno-exceptions -ggdb3 -Wno-enum-constexpr-conversion" ], "sources": [ "chnet/chnet_node.cc" -- Ammar Faizi