pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libodfgen libodfgen: Fix -Wtautological-unsig...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/305c9ad5d250
branches:  trunk
changeset: 375281:305c9ad5d250
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Feb 07 17:03:28 2018 +0000

description:
libodfgen: Fix -Wtautological-unsigned-enum-zero-compare

diffstat:

 textproc/libodfgen/distinfo                       |   3 ++-
 textproc/libodfgen/patches/patch-src_PageSpan.cxx |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r f4dcbd2b0fbd -r 305c9ad5d250 textproc/libodfgen/distinfo
--- a/textproc/libodfgen/distinfo       Wed Feb 07 16:47:14 2018 +0000
+++ b/textproc/libodfgen/distinfo       Wed Feb 07 17:03:28 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2016/08/15 18:52:10 ryoon Exp $
+$NetBSD: distinfo,v 1.8 2018/02/07 17:03:28 jperkin Exp $
 
 SHA1 (libodfgen-0.1.6.tar.xz) = 49da7cc0dc4adfe0452e951d2dea3c225358fd63
 RMD160 (libodfgen-0.1.6.tar.xz) = 9c3fcb5aecb0ad54bab246fbf16bf5d3ac562bb6
 SHA512 (libodfgen-0.1.6.tar.xz) = bc5e6908ee14c576adececdf8a94ae01f2ed487e6f2490e41aab787e1e8f72a3fb2a786f51ceeefa327710af215741ce13bcf4bb3d99d2aaf403f568c5db75a5
 Size (libodfgen-0.1.6.tar.xz) = 359988 bytes
+SHA1 (patch-src_PageSpan.cxx) = 8397b3a3bce846d2ab5544d079f3cdf8bb6430f8
diff -r f4dcbd2b0fbd -r 305c9ad5d250 textproc/libodfgen/patches/patch-src_PageSpan.cxx
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libodfgen/patches/patch-src_PageSpan.cxx Wed Feb 07 17:03:28 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_PageSpan.cxx,v 1.1 2018/02/07 17:03:28 jperkin Exp $
+
+Fix -Wtautological-unsigned-enum-zero-compare
+
+--- src/PageSpan.cxx.orig      2015-12-26 09:22:22.000000000 +0000
++++ src/PageSpan.cxx
+@@ -186,7 +186,7 @@ librevenge::RVNGString PageSpan::protect
+ 
+ void PageSpan::storeContent(ContentType type, libodfgen::DocumentElementVector *pContent)
+ {
+-      if (type<0||type>=C_NumContentTypes)
++      if (type>=C_NumContentTypes)
+       {
+               ODFGEN_DEBUG_MSG(("PageSpan::storeContent: the type seems bad\n"));
+               // probably better to do not delete it



Home | Main Index | Thread Index | Old Index