From c99c065a405bcbecc0bdfe956731cb73ad792fe0 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 2 Sep 2023 06:05:32 +0200 Subject: [PATCH] Ports/acpica-tools: Ignore unknown warning options -Wlogical-op, -Wmissing-parameter-type, and -Wold-style-declaration are unknown to Clang. While this isn't fatal by itself, it is very noisy. --- .../0002-Ignore-unknown-warning-options.patch | 24 +++++++++++++++++++ Ports/acpica-tools/patches/ReadMe.md | 8 +++++++ 2 files changed, 32 insertions(+) create mode 100644 Ports/acpica-tools/patches/0002-Ignore-unknown-warning-options.patch diff --git a/Ports/acpica-tools/patches/0002-Ignore-unknown-warning-options.patch b/Ports/acpica-tools/patches/0002-Ignore-unknown-warning-options.patch new file mode 100644 index 0000000000..462f7a40cc --- /dev/null +++ b/Ports/acpica-tools/patches/0002-Ignore-unknown-warning-options.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Schumacher +Date: Fri, 1 Sep 2023 23:07:15 +0200 +Subject: [PATCH] Ignore unknown warning options + +`-Wlogical-op`, `-Wmissing-parameter-type`, and `-Wold-style-declaration` +are unknown to Clang. While this isn't fatal by itself, it is very +noisy. +--- + generate/unix/Makefile.config | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config +index 0deeb14115c1473ef0e1b55f6e174122ae52633d..e255cddf11ba4801daabe835e7aa2a9840825ca0 100644 +--- a/generate/unix/Makefile.config ++++ b/generate/unix/Makefile.config +@@ -243,6 +243,7 @@ ifneq ($(ACPI_HOST), _FreeBSD) + -Wlogical-op\ + -Wmissing-parameter-type\ + -Wold-style-declaration\ ++ -Wno-unknown-warning-option\ + -Wtype-limits + endif + endif diff --git a/Ports/acpica-tools/patches/ReadMe.md b/Ports/acpica-tools/patches/ReadMe.md index 3d01d7cb29..16397bd6aa 100644 --- a/Ports/acpica-tools/patches/ReadMe.md +++ b/Ports/acpica-tools/patches/ReadMe.md @@ -6,3 +6,11 @@ Add serenity definitions for LibC includes We use the netbsd "acnetbsd.h" file here as a template. +## `0002-Ignore-unknown-warning-options.patch` + +Ignore unknown warning options + +`-Wlogical-op`, `-Wmissing-parameter-type`, and `-Wold-style-declaration` +are unknown to Clang. While this isn't fatal by itself, it is very +noisy. +