[okular/f18] get rid of gcc overflow warning
Than Ngo
than at fedoraproject.org
Thu Jan 31 16:58:01 UTC 2013
commit b665a9c304366e2d74fe8b7f63be1cdb363960f8
Author: Than Ngo <than at redhat.com>
Date: Thu Jan 31 17:57:34 2013 +0100
get rid of gcc overflow warning
okular-gcc-overflow.patch | 12 ++++++++++++
okular.spec | 9 ++++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/okular-gcc-overflow.patch b/okular-gcc-overflow.patch
new file mode 100644
index 0000000..c337f1f
--- /dev/null
+++ b/okular-gcc-overflow.patch
@@ -0,0 +1,12 @@
+diff -up okular-4.9.5/generators/dvi/special.cpp.me okular-4.9.5/generators/dvi/special.cpp
+--- okular-4.9.5/generators/dvi/special.cpp.me 2013-01-30 17:57:45.269341954 +0100
++++ okular-4.9.5/generators/dvi/special.cpp 2013-01-31 13:23:54.897936518 +0100
+@@ -480,7 +480,7 @@ void dviRenderer::TPIC_addPath_special(c
+ if (TPIC_path.size() == 0)
+ number_of_elements_in_path = 0;
+ if (TPIC_path.size() == number_of_elements_in_path)
+- TPIC_path.resize(number_of_elements_in_path+100);
++ TPIC_path.resize(number_of_elements_in_path+100U);
+ TPIC_path.setPoint(number_of_elements_in_path++, x, y);
+ }
+
diff --git a/okular.spec b/okular.spec
index 559fda7..a847df1 100644
--- a/okular.spec
+++ b/okular.spec
@@ -1,7 +1,7 @@
Name: okular
Summary: A document viewer
Version: 4.9.5
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2
URL: https://projects.kde.org/projects/kde/kdegraphics/okular
@@ -20,6 +20,9 @@ Patch50: kdegraphics-4.5.1-okular_dt.patch
# don't hardcode paths in OkularConfig.cmake
Patch51: kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths.patch
+# get rif of gcc overflow warning
+Patch52: okular-gcc-overflow.patch
+
## upstream patches
# http://commits.kde.org/okular/00cbba3ecec708cb147e990112bb3074778eca65
Patch104: 0004-Propertly-encode-the-filename.patch
@@ -83,6 +86,7 @@ Summary: A kioslave for displaying WinHelp files
%patch50 -p2 -b .okular_dt
%patch51 -p2 -b .OkularConfig
+%patch52 -p1 -b .overflow
%patch104 -p1 -b .0004
@@ -156,6 +160,9 @@ fi
%changelog
+* Thu Jan 31 2013 Than Ngo <than at redhat.com> - 4.9.5-4
+- get rid of gcc overflow warning
+
* Mon Jan 28 2013 Rex Dieter <rdieter at fedoraproject.org> 4.9.5-3
- really apply encoding patch/fix (#747976)
More information about the scm-commits
mailing list