From cb40bb630ca469426962b4056750716cd43f478d Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Tue, 15 Oct 2013 11:52:48 +0200 Subject: Fix compiler warnings. diff --git a/src/compression/huffman.c b/src/compression/huffman.c index bd0a15c..77660fc 100644 --- a/src/compression/huffman.c +++ b/src/compression/huffman.c @@ -58,9 +58,9 @@ static int comp_htree(const void *leafptr1, const void *leafptr2, const void *pr { const union htree_nodeleaf *leaf1=(union htree_nodeleaf *)leafptr1; const union htree_nodeleaf *leaf2=(union htree_nodeleaf *)leafptr2; - (void)private; - int rval=0; + (void)private; + if (leaf1->leaf.probleaf.prob) rval=1; else if (leaf1->leaf.prob>leaf2->leaf.prob) diff --git a/src/tests/md_openmp.c b/src/tests/md_openmp.c index 1560c5d..168092a 100644 --- a/src/tests/md_openmp.c +++ b/src/tests/md_openmp.c @@ -19,7 +19,7 @@ void update ( int np, int nd, double pos[], double vel[], double f[], /******************************************************************************/ -int main ( int argc, char *argv[] ) +int main () /******************************************************************************/ /* diff --git a/src/tests/md_openmp_util.c b/src/tests/md_openmp_util.c index 26c630d..d3504e4 100644 --- a/src/tests/md_openmp_util.c +++ b/src/tests/md_openmp_util.c @@ -19,7 +19,7 @@ void update ( int np, int nd, float pos[], float vel[], float f[], /******************************************************************************/ -int main ( int argc, char *argv[] ) +int main () /******************************************************************************/ /* -- cgit v0.10.1