Skip to content

Commit c99c065

Browse files
timschumiADKaster
authored andcommitted
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.
1 parent 1875d37 commit c99c065

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Tim Schumacher <timschumi@gmx.de>
3+
Date: Fri, 1 Sep 2023 23:07:15 +0200
4+
Subject: [PATCH] Ignore unknown warning options
5+
6+
`-Wlogical-op`, `-Wmissing-parameter-type`, and `-Wold-style-declaration`
7+
are unknown to Clang. While this isn't fatal by itself, it is very
8+
noisy.
9+
---
10+
generate/unix/Makefile.config | 1 +
11+
1 file changed, 1 insertion(+)
12+
13+
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
14+
index 0deeb14115c1473ef0e1b55f6e174122ae52633d..e255cddf11ba4801daabe835e7aa2a9840825ca0 100644
15+
--- a/generate/unix/Makefile.config
16+
+++ b/generate/unix/Makefile.config
17+
@@ -243,6 +243,7 @@ ifneq ($(ACPI_HOST), _FreeBSD)
18+
-Wlogical-op\
19+
-Wmissing-parameter-type\
20+
-Wold-style-declaration\
21+
+ -Wno-unknown-warning-option\
22+
-Wtype-limits
23+
endif
24+
endif

Ports/acpica-tools/patches/ReadMe.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ Add serenity definitions for LibC includes
66

77
We use the netbsd "acnetbsd.h" file here as a template.
88

9+
## `0002-Ignore-unknown-warning-options.patch`
10+
11+
Ignore unknown warning options
12+
13+
`-Wlogical-op`, `-Wmissing-parameter-type`, and `-Wold-style-declaration`
14+
are unknown to Clang. While this isn't fatal by itself, it is very
15+
noisy.
16+

0 commit comments

Comments
 (0)