summaryrefslogtreecommitdiff
path: root/x11-libs/gtksourceview/files/4.8.1-build-disable-Werror-for-incompatible-pointer-types.patch
blob: e13a65c3bc4df8f9068665bc97e096c11dd3c721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From d1ed58b2ab82bd5be55881088fc17ff1527511db Mon Sep 17 00:00:00 2001
From: Christian Hergert <chergert@redhat.com>
Date: Thu, 15 Apr 2021 08:11:22 -0700
Subject: [PATCH] build: disable -Werror for incompatible-pointer-types

This causes an issue with volatile and GLib in some configurations, so
just keep it out for now. We will bring it back at some point going
forward.

We are already doing the same in 5.0.

Fixes #179
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 826a3121..6ff5b155 100644
--- a/meson.build
+++ b/meson.build
@@ -181,7 +181,8 @@ else
     '-Werror=empty-body',
     '-Werror=implicit',
     '-Werror=implicit-function-declaration',
-    '-Werror=incompatible-pointer-types',
+    # Disabled due to volatile changes in GLib
+    # '-Werror=incompatible-pointer-types',
     '-Werror=init-self',
     '-Werror=int-conversion',
     '-Werror=int-to-pointer-cast',
-- 
2.26.3