diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-07-28 18:55:56 +0000 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-08-20 12:32:31 +0300 |
commit | ef2703f95f0ced3d2668226b9097a9e638054283 (patch) | |
tree | 20661f15332e27313e9e8c52f13f4cd2d675489b /dev-embedded | |
parent | dev-embedded/sdcc: fix compilation of live version (diff) | |
download | gentoo-ef2703f95f0ced3d2668226b9097a9e638054283.tar.gz gentoo-ef2703f95f0ced3d2668226b9097a9e638054283.tar.bz2 gentoo-ef2703f95f0ced3d2668226b9097a9e638054283.zip |
dev-embedded/jal: Fix incompatible integer to pointer conversion
Closes: https://bugs.gentoo.org/883243
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32025
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch | 23 | ||||
-rw-r--r-- | dev-embedded/jal/jal-0.4.62-r1.ebuild | 18 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch b/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch new file mode 100644 index 000000000000..10bef3a4c573 --- /dev/null +++ b/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch @@ -0,0 +1,23 @@ +Bug: https://bugs.gentoo.org/883243 +--- a/jal/treerep.c ++++ b/jal/treerep.c +@@ -892,7 +892,7 @@ tree new_asm(loc_t loc, opcode_t opcode, tree arg1, int arg2) + + + if (code_has(p->opcode, field_flabel)) { +- assert_pointer(NULL, arg2); ++ assert_pointer(NULL, (void *)arg2); + p->next = new_const(new_value(type_universal, arg2)); + } + +--- a/jal/treetools.c ++++ b/jal/treetools.c +@@ -600,7 +600,7 @@ tree arg(tree p, int n, boolean must_find) + #endif + assert_kind(p->loc, p, node_procedure); + /* jal_assert(p->loc, n > 0); */ +- assert_pointer(p->loc, n > 0); ++ assert_pointer(p->loc, (void *)( n > 0 )); + p = p->first; + assert_pointer(NULL, p); + diff --git a/dev-embedded/jal/jal-0.4.62-r1.ebuild b/dev-embedded/jal/jal-0.4.62-r1.ebuild new file mode 100644 index 000000000000..efadbb6cadd9 --- /dev/null +++ b/dev-embedded/jal/jal-0.4.62-r1.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A high-level language for Microchip PIC and Ubicom SX microcontrollers" +HOMEPAGE="https://jal.sourceforge.net/" +SRC_URI="mirror://sourceforge/jal/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch +) |