From 2f1377836848e6cd32f238910ffb410a7bc281b4 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Mon, 2 Aug 2010 02:53:50 -0400 Subject: [PATCH] * Mon Aug 02 2010 Orcan Ogetbil - 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 deletion(-) create mode 100644 libkml-fix-gcc-warning.patch 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 - 0.6.1-7 +- Fix gcc warning that lead to failure due to -Werror flag + * Wed Jul 21 2010 David Malcolm - 0.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild