[libkml] * Mon Aug 02 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6.1-7 - Fix gcc warning that
Orcan Ogetbil
oget at fedoraproject.org
Mon Aug 2 06:41:46 UTC 2010
commit b8e12a3b6a991bf9c9c4418aba72c621216d15f4
Author: Orcan Ogetbil <oget.fedora at gmail.com>
Date: Mon Aug 2 02:41:42 2010 -0400
* Mon Aug 02 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6.1-7
- Fix gcc warning that lead to failure due to -Werror flag
libkml-fix-gcc-warning.patch | 12 ++++++++++++
libkml.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/libkml-fix-gcc-warning.patch b/libkml-fix-gcc-warning.patch
new file mode 100644
index 0000000..6d4e86c
--- /dev/null
+++ b/libkml-fix-gcc-warning.patch
@@ -0,0 +1,12 @@
+diff -rupN libkml-0.6.1.old/src/kml/dom/geometry.cc libkml-0.6.1/src/kml/dom/geometry.cc
+--- libkml-0.6.1.old/src/kml/dom/geometry.cc 2009-01-09 14:31:00.000000000 -0500
++++ libkml-0.6.1/src/kml/dom/geometry.cc 2010-08-02 02:30:23.000000000 -0400
+@@ -117,7 +117,7 @@ bool Coordinates::ParseVec3(const char*
+ }
+ if (nextp) {
+ while (isspace(*endp)) { // Eat the remaining whitespace before return.
+- *endp++;
++ (void)*endp++;
+ }
+ *nextp = endp;
+ }
diff --git a/libkml.spec b/libkml.spec
index ee7f86e..8a82af5 100644
--- a/libkml.spec
+++ b/libkml.spec
@@ -3,7 +3,7 @@
Name: libkml
Version: 0.6.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: A KML library written in C++ with bindings to other languagues
Group: Development/Libraries
@@ -12,6 +12,7 @@ URL: http://code.google.com/p/%{name}/
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: libkml-third_party_removal.diff
Patch1: libkml-0.6.1.configure_ac.patch
+Patch2: libkml-fix-gcc-warning.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# requires swig >= 1.3.35
@@ -43,6 +44,7 @@ developing applications that use %{name}.
rm -rf third_party
%patch0 -p0 -b .third_party
%patch1 -p1 -b .configure_ac
+%patch2 -p1 -b .fixwarning
%build
autoreconf -fi
@@ -112,6 +114,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libkml/*.so
%changelog
+* Mon Aug 02 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6.1-7
+- Fix gcc warning that lead to failure due to -Werror flag
+
* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 0.6.1-6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list