Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 48d5ae46 authored by Vincent Danjean's avatar Vincent Danjean
Browse files

Fix some compilation warnings and protect debugging code

git-svn-id: svn+ssh://imag/users/huron/danjean/svnroot/claire/altree/trunk@468 cf695345-040a-0410-a956-b889e835fe2e
parent 1850f46e
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ int myrand_init(unsigned long value) {
#ifdef MT
init_genrand_mt(&rdata, value);
#endif
return 0;
}
static void init() __attribute__((constructor));
......
......@@ -4,6 +4,8 @@
#include <strings.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
#include "myrand.h"
struct chi2s {
......@@ -163,7 +165,7 @@ static void *resampling_worker(void* param) {
int resampling_chi2(const struct tree *tree, const struct cc *lcc, int prolonge,
int nb_permutations, datatype_t *results, int parallel)
{
#if defined(DEBUG) && 0
FILE* dump=fopen("/tmp/dump", "w+");
fwrite(tree, sizeof(struct tree), 1, dump);
fwrite(tree->ld, sizeof(int), tree->nb_leaves, dump);
......@@ -173,7 +175,7 @@ int resampling_chi2(const struct tree *tree, const struct cc *lcc, int prolonge,
fwrite(&prolonge, sizeof(int), 1, dump);
fwrite(&nb_permutations, sizeof(int), 1, dump);
fclose(dump);
#endif
char* envvar=getenv("ALTREE_PARALLEL");
if (envvar) {
parallel=atoi(envvar);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment