Skip to content

Commit

Permalink
Ignore array size being cast to pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Jan 16, 2025
1 parent 195176a commit 2ab1255
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packages/thapi/0001-Ignore-int-conversions.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
From 7f9b0b466880e21528fb4aa93ada47fe651b95b0 Mon Sep 17 00:00:00 2001
From: Brice Videau <[email protected]>
Date: Thu, 16 Jan 2025 20:53:17 +0000
Subject: [PATCH] Ignore int conversions.

---
cuda/Makefile.am | 2 +-
hip/Makefile.am | 2 +-
ze/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cuda/Makefile.am b/cuda/Makefile.am
index dc2ffa1..1af725e 100644
--- a/cuda/Makefile.am
+++ b/cuda/Makefile.am
@@ -6,5 +6,5 @@ else
WERROR =
endif
-LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./
+LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare -Wno-int-conversion $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./

CUDA_HDR = \
diff --git a/hip/Makefile.am b/hip/Makefile.am
index cb70612..e804a12 100644
--- a/hip/Makefile.am
+++ b/hip/Makefile.am
@@ -6,5 +6,5 @@ else
WERROR =
endif
-LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./
+LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare -Wno-int-conversion $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./

HIP_HDR = \
diff --git a/ze/Makefile.am b/ze/Makefile.am
index 4150042..9cce559 100644
--- a/ze/Makefile.am
+++ b/ze/Makefile.am
@@ -6,5 +6,5 @@ else
WERROR =
endif
-LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./
+LTTNG_FLAGS=-fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare -Wno-int-conversion $(WERROR) -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I../utils -I./

ZE_NAMESPACES = ze zet zes zel
--
2.35.3

2 changes: 2 additions & 0 deletions packages/thapi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class Thapi(AutotoolsPackage):

variant('strict', default=False, description='Enable -Werror during the build')
variant('mpi', default=False, description='Enable MPI support for the Sync Daemon')

patch('0001-Ignore-int-conversions.patch', when='@0.0.8:0.0.11')
def configure_args(self):
args = []
args.extend(self.enable_or_disable('mpi'))
Expand Down

0 comments on commit 2ab1255

Please sign in to comment.