File: 070_fix-ftbfs-g%2B%2B-6.patch

package info (click to toggle)
zthreads 2.3.2-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,536 kB
  • sloc: sh: 8,432; cpp: 6,032; ansic: 126; makefile: 109; javascript: 6
file content (21 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: fix "return-statement with a value, in function returning 'void'"
Author: Andreas Beckmann <anbe@debian.org>
Bug-Debian: https://bugs.debian.org/812027
Last-Update: 2017-04-23
Index: zthreads/include/zthread/Guard.h
===================================================================
--- zthreads.orig/include/zthread/Guard.h
+++ zthreads/include/zthread/Guard.h
@@ -114,12 +114,9 @@ class CompoundScope {
       if(!Scope2::createScope(l, ms)) {
 
         Scope1::destroyScope(l);
-        return false;
 
       }
 
-    return true;
-
   }
 
   template <class LockType>