[gjs: 4/6] CI: ignore warning about pragma once in IWYU
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/6] CI: ignore warning about pragma once in IWYU
- Date: Sun, 28 Nov 2021 00:06:53 +0000 (UTC)
commit b79eae6c47979768b83a0b36e283122be20df898
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Oct 9 13:01:41 2021 -0700
CI: ignore warning about pragma once in IWYU
tools/run_iwyu.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh
index 7e1db246..295d07a0 100755
--- a/tools/run_iwyu.sh
+++ b/tools/run_iwyu.sh
@@ -44,7 +44,8 @@ fi
echo "files: $files"
IWYU="python3 $(which iwyu_tool || which iwyu_tool.py) -p ."
-IWYU_RAW="include-what-you-use -xc++ -std=c++17 -Xiwyu --keep=config.h"
+IWYU_ARGS="-Wno-pragma-once-outside-header"
+IWYU_RAW="include-what-you-use -xc++ -std=c++17 -Xiwyu --keep=config.h $IWYU_ARGS"
IWYU_RAW_INC="-I. -I.. $(pkg-config --cflags gobject-introspection-1.0 mozjs-78)"
PRIVATE_MAPPING="-Xiwyu --mapping_file=$SRCDIR/tools/gjs-private-iwyu.imp -Xiwyu --keep=config.h"
PUBLIC_MAPPING="-Xiwyu --mapping_file=$SRCDIR/tools/gjs-public-iwyu.imp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]