File: 0002-Fix-FTBFS-without-OpenMP.patch

package info (click to toggle)
spaced 1.2.0-201605%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 488 kB
  • sloc: cpp: 2,252; sh: 44; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 652 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
From: =?utf-8?q?Fabian_Kl=C3=B6tzl?= <fabian@kloetzl.info>
Date: Wed, 23 Mar 2016 12:01:55 +0100
Subject: Fix FTBFS without OpenMP

---
 sort.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/sort.h
+++ b/src/sort.h
@@ -153,9 +153,9 @@ void writeDmat(vector<vector<double> > d
 
 template<typename uint>
 void spacedDNA(vector<string>& patternSet, unsigned char* seqData, uint n, int distance, int threads, int weight, int dontCare, bool revComp, string output){
+	int ell=dontCare+weight-1;
 	#ifdef _OPENMP
 	omp_set_dynamic(0);
-	int ell=dontCare+weight-1;
 	omp_set_num_threads(threads);
 	#endif
 	unsigned char alphabet[256]={};