File: 0002-Disable-Wincompatible-pointer-types-to-fix-FTBFS.patch

package info (click to toggle)
ruby-liquid-c 4.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 3,866; ruby: 1,135; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Piper McCorkle <contact@piperswe.me>
Date: Tue, 20 Aug 2024 16:06:00 -0500
Subject: Disable -Wincompatible-pointer-types to fix FTBFS

Forwarded: not-needed
---
 ext/liquid_c/extconf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/liquid_c/extconf.rb b/ext/liquid_c/extconf.rb
index a4ebe1a..b3ed466 100755
--- a/ext/liquid_c/extconf.rb
+++ b/ext/liquid_c/extconf.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 require "mkmf"
-$CFLAGS << " -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers"
+$CFLAGS << " -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-incompatible-pointer-types"
 append_cflags("-fvisibility=hidden")
 # In Ruby 2.6 and earlier, the Ruby headers did not have struct timespec defined
 valid_headers = RbConfig::CONFIG["host_os"] !~ /linux/ || Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7")