File: fix_gcc-6.1_issue_in_liblemon_code_copy.patch

package info (click to toggle)
cufflinks 2.2.1%2Bdfsg.1-9
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm
  • size: 4,336 kB
  • sloc: cpp: 57,165; ansic: 12,297; python: 516; makefile: 241; sh: 59
file content (23 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Graham Inggs <ginggs@debian.org>
Last-Update: Mon, 15 Aug 2016 23:47:24 +0200
Bug-Debian: https://bugs.debian.org/833493
Description: Fix a build issue caused by an unmaintained code copy
 of liblemon.
 Remark: Cufflinks does not build with the current Debian packaged liblemon.
         If you want to try you can use the branch use_debian_packaged_liblemon
         in the packaging Git

--- a/src/lemon/error.h
+++ b/src/lemon/error.h
@@ -67,9 +67,9 @@ namespace lemon {
     }
 
     ExceptionMember& operator=(const ExceptionMember& copy) {
-      if (ptr.get() == 0) return;
+      if (ptr.get() == 0) return NULL;
       try {
-	if (!copy.valid()) return;
+	if (!copy.valid()) return NULL;
  	*ptr = copy.get();
       } catch (...) {}
     }