commit d29aa43684de77fbde8240cfb85fdbfe2f3adc4c
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Mon Oct 14 14:55:13 2024 +0900
Fix for -Werror=incompatible-pointer-types, fix type for g_new
tilem-2.0-g_new-type.patch | 11 +++++++++++
tilem.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/tilem-2.0-g_new-type.patch b/tilem-2.0-g_new-type.patch
new file mode 100644
index 0000000..a62a2c7
--- /dev/null
+++ b/tilem-2.0-g_new-type.patch
@@ -0,0 +1,11 @@
+--- tilem-2.0/gui/macro.c.debug 2011-11-27 05:47:07.000000000 +0900
++++ tilem-2.0/gui/macro.c 2024-10-13 16:38:22.782439121 +0900
+@@ -86,7 +86,7 @@ void tilem_macro_add_action(TilemMacro*
+ macro->actions = tilem_macro_actions_new(macro, n + 1);
+
+ /* Then we need to save the action */
+- macro->actions[n] = g_new(char, strlen(value)); /* FIXME : gcc says :
"assignment from incompatible pointer type" ??? */
++ macro->actions[n] = g_new(TilemMacroAtom, 1);
+ macro->actions[n]->value = g_strdup(value);
+ macro->actions[n]->type = type;
+ macro->n++;
diff --git a/tilem.spec b/tilem.spec
index 67662de..7da71f3 100644
--- a/tilem.spec
+++ b/tilem.spec
@@ -1,6 +1,6 @@
Name: tilem
Version: 2.0
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: Emulator and debugger for Texas Instruments Z80-based graphing
calculators
License: GPLv3+
@@ -12,6 +12,8 @@ Source1: tilem.appdata.xml
# Patch to add -lm to libs via autoconf.
Patch0: tilem-ac-check-libm.patch
+# Patch for -Werror=incompatible-pointer-type : fix type for g_new
+Patch1: tilem-2.0-g_new-type.patch
BuildRequires: libticonv-devel, libticalcs2-devel, libticables2-devel,
libtifiles2-devel
BuildRequires: glib2-devel, gtk2-devel
@@ -105,6 +107,9 @@ fi
%changelog
+* Sun Oct 13 2024 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 2.0-20
+- Fix for -Werror=incompatible-pointer-types, fix type for g_new
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 2.0-19
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild