[polyml] 05/09: Define unixConstVec as unsigned

James Clarke jrtc27-guest at moszumanska.debian.org
Tue Feb 2 21:21:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository polyml.

commit 554b465573d80967c571f5d958d80d2d11732630
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Sun Jan 31 18:25:30 2016 +0000

    Define unixConstVec as unsigned
---
 debian/changelog                            |  2 ++
 debian/patches/series                       |  1 +
 debian/patches/unix-const-vec-unsigned.diff | 18 ++++++++++++++++++
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 58a3ec9..8c7701d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ polyml (5.6-2) UNRELEASED; urgency=low
     - mips-abi.diff: Mark polyexport.o as CPIC on MIPS when code is
       position-independent. Fixes ld warning about linking abicalls files with
       non-abicalls files.
+    - unix-const-vec-unsigned.diff: Define unixConstVec as unsigned. Fixes
+      narrowing conversion inside braces on PowerPC with GCC 6.
 
  -- James Clarke <jrtc27 at jrtc27.com>  Sun, 31 Jan 2016 17:59:21 +0000
 
diff --git a/debian/patches/series b/debian/patches/series
index 9cb4f4c..0cb28ba 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ rounding-mode-test-only-allow-exceptions-for-set-mode.diff
 soft-fpu.diff
 disable-compile-time-real-eval.diff
 mips-abi.diff
+unix-const-vec-unsigned.diff
diff --git a/debian/patches/unix-const-vec-unsigned.diff b/debian/patches/unix-const-vec-unsigned.diff
new file mode 100644
index 0000000..c17db5c
--- /dev/null
+++ b/debian/patches/unix-const-vec-unsigned.diff
@@ -0,0 +1,18 @@
+Description: Define unixConstVec as unsigned
+ .
+ Fixes narrowing conversion inside braces on PowerPC with GCC 6
+Author: James Clarke <jrtc27 at jrtc27.com>
+Forwarded: https://github.com/polyml/polyml/pull/19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/libpolyml/unix_specific.cpp
++++ b/libpolyml/unix_specific.cpp
+@@ -135,7 +135,7 @@
+ #define SIZEOF(x) (sizeof(x)/sizeof(PolyWord))
+ 
+ /* Table of constants returned by call 4. */
+-static int unixConstVec[] =
++static unsigned unixConstVec[] =
+ {
+     /* Error codes. */
+     E2BIG, /* 0 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/polyml.git



More information about the debian-science-commits mailing list