forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ports: Fix
acpica-tools
compilation on Clang toolchain
The clang toolchain was broken because of unknown warning flags in the Makefiles. * -Wlogical-op * -Wmissing-parameter-type * -Wold-style-declaration
- Loading branch information
Showing
3 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Ports/acpica-tools/patches/0004-Remove-unsupported-warning-flags-for-Clang-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Gurkirat Singh <tbhaxor@gmail.com> | ||
Date: Fri, 18 Aug 2023 08:17:35 +0530 | ||
Subject: [PATCH] Remove unsupported warning flags for Clang support | ||
|
||
--- | ||
generate/efi/Makefile.config | 3 --- | ||
generate/unix/Makefile.config | 3 --- | ||
2 files changed, 6 deletions(-) | ||
|
||
diff --git a/generate/efi/Makefile.config b/generate/efi/Makefile.config | ||
index da49657bd1779cf1b45f019c05d98d4214d05487..8d4edc892cd563c43ea4240a7b9e103da536e786 100644 | ||
--- a/generate/efi/Makefile.config | ||
+++ b/generate/efi/Makefile.config | ||
@@ -157,9 +157,6 @@ CWARNINGFLAGS = \ | ||
-Wswitch-default\ | ||
-Wpointer-arith\ | ||
-Wempty-body\ | ||
- -Wlogical-op\ | ||
- -Wmissing-parameter-type\ | ||
- -Wold-style-declaration\ | ||
-Wtype-limits | ||
|
||
ifneq ($(NOWERROR),TRUE) | ||
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config | ||
index 0374e09d880f0ecec165acc32e7b30a4dbb0c8cc..d92dcaa46363a24f2ec740fc736be0f6b1f3b327 100644 | ||
--- a/generate/unix/Makefile.config | ||
+++ b/generate/unix/Makefile.config | ||
@@ -241,9 +241,6 @@ ifneq ($(ACPI_HOST), _FreeBSD) | ||
ifneq ($(ACPI_HOST), _APPLE) | ||
CWARNINGFLAGS += \ | ||
-Woverride-init\ | ||
- -Wlogical-op\ | ||
- -Wmissing-parameter-type\ | ||
- -Wold-style-declaration\ | ||
-Wtype-limits | ||
endif | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters