[med-svn] [fastx-toolkit] 02/05: Exit after usage to make sure gcc-7 will not assume that code falls through case statement

Andreas Tille tille at debian.org
Fri Aug 25 11:37:35 UTC 2017


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

tille pushed a commit to tag debian/0.0.14-5
in repository fastx-toolkit.

commit 6bd27a422b1760cd54b1ab3eafddbcddf3d09a1b
Author: Andreas Tille <tille at debian.org>
Date:   Fri Aug 25 10:18:41 2017 +0200

    Exit after usage to make sure gcc-7 will not assume that code falls through case statement
---
 debian/changelog           |  3 +++
 debian/patches/gcc-7.patch | 16 ++++++++++++++++
 debian/patches/series      |  1 +
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 86b7284..a8effe2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ fastx-toolkit (0.0.14-5) UNRELEASED; urgency=low
 
   [ Andreas Tille ]
   * Standards-Version: 4.1.0 (no changes needed)
+  * Exit after usage to make sure gcc-7 will not assume that code falls
+    through case statement.
+    Closes: #853396
 
  -- Andreas Tille <tille at debian.org>  Fri, 25 Aug 2017 10:13:28 +0200
 
diff --git a/debian/patches/gcc-7.patch b/debian/patches/gcc-7.patch
new file mode 100644
index 0000000..6ca9d39
--- /dev/null
+++ b/debian/patches/gcc-7.patch
@@ -0,0 +1,16 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 25 Aug 2017 10:13:28 +0200
+Bug-Debian: https://bugs.debian.org/853396
+Description: Exit after usage to make sure gcc-7 will not assume that code falls
+    through case statement.
+
+--- a/src/fasta_formatter/fasta_formatter.cpp
++++ b/src/fasta_formatter/fasta_formatter.cpp
+@@ -103,6 +103,7 @@ void parse_command_line(int argc, char*
+ 		switch(opt) {
+ 		case 'h':
+ 			usage();
++			exit(0);
+ 		
+ 		case 'i':
+ 			input_filename = optarg;
diff --git a/debian/patches/series b/debian/patches/series
index 8ad229c..3fc57c7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+gcc-7.patch
 Q_option_documentation.patch
 reproducible_build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fastx-toolkit.git



More information about the debian-med-commit mailing list