From df48de9bc8c02f010793abf4cd438482d5b63100 Mon Sep 17 00:00:00 2001 From: LEE KYOUNGHEON Date: Sat, 11 May 2024 19:09:09 +0900 Subject: [PATCH] Suppress false-positive warning. export extern "C++" style is valid in Clang (https://clang.llvm.org/docs/StandardCPlusPlusModules.html#export-extern-c-style), but warning emitted. This commit disables it. --- module/argparse.cppm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/argparse.cppm b/module/argparse.cppm index c60edff2..9df9eba3 100644 --- a/module/argparse.cppm +++ b/module/argparse.cppm @@ -42,7 +42,10 @@ import std; import std.compat; extern "C++" { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview" #include +#pragma clang diagnostic pop } #endif