[Debian-astro-commits] [saods9] 04/05: Fix -Wnarrowing failure with gcc-6. Closes: #811753

Ole Streicher olebole at moszumanska.debian.org
Thu Mar 17 20:13:34 UTC 2016


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

olebole pushed a commit to branch debian
in repository saods9.

commit 4f8c2ce5b9cd9ffdd29066c64fb1c4c529487e11
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Mar 17 21:03:29 2016 +0100

    Fix -Wnarrowing failure with gcc-6. Closes: #811753
---
 debian/changelog               |  1 +
 debian/patches/fix_gcc-6.patch | 13 +++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fc8026f..52a46ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ saods9 (7.4.1+repack-1) UNRELEASED; urgency=low
   * Update standards-version to 3.9.7 (no changes)
   * Update VCS fields, add ASCL-Id
   * New upstream version
+  * Fix -Wnarrowing failure with gcc-6. Closes: #811753
 
  -- Ole Streicher <olebole at debian.org>  Thu, 17 Mar 2016 20:54:01 +0100
 
diff --git a/debian/patches/fix_gcc-6.patch b/debian/patches/fix_gcc-6.patch
new file mode 100644
index 0000000..457396a
--- /dev/null
+++ b/debian/patches/fix_gcc-6.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Specify char[] constant as unsigned since it contains bytes > 0x7f
+--- a/tksao1.0/fitsy++/outsocket.C
++++ b/tksao1.0/fitsy++/outsocket.C
+@@ -61,7 +61,7 @@
+   }
+ 
+   // dump simple header
+-  char header[10] = {0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x03};
++  unsigned char header[10] = {0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x03};
+   send(id_, header, 10, 0);
+   
+   stream_->next_out = buf_;
diff --git a/debian/patches/series b/debian/patches/series
index 3208b65..3189652 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ saotk_use_system_libs.patch
 saotk_spellfix.patch
 tcliis.patch
 tkhtml.patch
+fix_gcc-6.patch

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



More information about the Debian-astro-commits mailing list