- Fix segfault in constructor/destructor warning (upstream ID 3530078)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=38
This commit is contained in:
Klaus Kämpf 2012-05-27 13:32:46 +00:00 committed by Git OBS Bridge
parent 7af15c657f
commit e26c676208
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,34 @@
From aa7b4489f8336647edb08a30f7ab95b7e675806d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Sun, 27 May 2012 15:28:45 +0200
Subject: [PATCH] Fix call to Swig_name_decl (upstream ID 3530078)
---
Source/Modules/lang.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx
index 8fb5069..b7ce502 100644
--- a/Source/Modules/lang.cxx
+++ b/Source/Modules/lang.cxx
@@ -2623,7 +2623,7 @@ int Language::constructorDeclaration(Node *n) {
Delete(expected_name_resolved);
}
if (illegal_name) {
- Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(name));
+ Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(n));
Swig_restore(n);
return SWIG_NOWRAP;
}
@@ -2760,7 +2760,7 @@ int Language::destructorDeclaration(Node *n) {
}
if (illegal_name) {
- Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(name));
+ Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(n));
Swig_restore(n);
Delete(expected_name);
return SWIG_NOWRAP;
--
1.7.9.2

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun May 27 13:31:49 UTC 2012 - kkaempf@suse.com
- Fix segfault in constructor/destructor warning (upstream ID 3530078)
-------------------------------------------------------------------
Sat May 26 11:55:46 UTC 2012 - kkaempf@suse.com

View File

@ -35,6 +35,8 @@ Patch4: 0004-Ruby-Add-local-dir-to-loadpath-for-Ruby-1.9.patch
Patch5: 0007-Ruby-1.9-methods-returns-array-of-Symbols-now.patch
Patch6: 0008-Ruby-Disable-broken-tests.patch
Patch7: 0012-Python-Disable-broken-test-in-threads_exception.patch
# Upstream ID 3530078
Patch8: 0013-Fix-call-to-Swig_name_decl-upstream-ID-3530078.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
@ -135,6 +137,7 @@ understandig SWIG usage.
%patch6 -p1
%patch7 -p1
%endif
%patch8 -p1
%build
sh autogen.sh