From c1a1449ec2cb78b6ae3a0e8db10e0983004dae45 Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Wed, 7 Aug 2024 08:09:32 -0400 Subject: [PATCH] Enable -Wno-orphans to fix warnings uncovered by GHC 9.8 GHC 9.8 is better about reporting orphan type family instances, which are used in various spots in Macaw. Enable `-Wno-orphans` to suppress these warnings. --- macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs | 1 + macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs | 1 + macaw-riscv/src/Data/Macaw/RISCV/RISCVReg.hs | 1 + x86/src/Data/Macaw/X86.hs | 1 + 4 files changed, 4 insertions(+) diff --git a/macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs b/macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs index 51d308df..57ab8a9b 100644 --- a/macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs +++ b/macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs @@ -12,6 +12,7 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Data.Macaw.ARM.ARMReg ( ARMReg(..) diff --git a/macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs b/macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs index 5f3299c5..298ecdaa 100644 --- a/macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs +++ b/macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs @@ -15,6 +15,7 @@ {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} -- | Defines the register types for PowerPC, along with some helpers module Data.Macaw.PPC.PPCReg ( PPCReg(..), diff --git a/macaw-riscv/src/Data/Macaw/RISCV/RISCVReg.hs b/macaw-riscv/src/Data/Macaw/RISCV/RISCVReg.hs index 3ab159e1..2a0deca0 100644 --- a/macaw-riscv/src/Data/Macaw/RISCV/RISCVReg.hs +++ b/macaw-riscv/src/Data/Macaw/RISCV/RISCVReg.hs @@ -11,6 +11,7 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Data.Macaw.RISCV.RISCVReg ( -- * RISC-V macaw register state diff --git a/x86/src/Data/Macaw/X86.hs b/x86/src/Data/Macaw/X86.hs index c7708efa..773fc995 100644 --- a/x86/src/Data/Macaw/X86.hs +++ b/x86/src/Data/Macaw/X86.hs @@ -16,6 +16,7 @@ x86_64 programs. {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NondecreasingIndentation #-} +{-# OPTIONS_GHC -Wno-orphans #-} module Data.Macaw.X86 ( x86_64_info , x86_64_freeBSD_info