From 39aefd0d0343709da82e340f3d0e22ef55a1079d Mon Sep 17 00:00:00 2001 From: Andrea Censi <andrea@cds.caltech.edu> Date: Thu, 28 Mar 2013 20:30:35 -0700 Subject: [PATCH] fixed a few warnings --- sm/lib/gpc/gpc_utils.c | 2 +- sm/lib/json-c/test2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sm/lib/gpc/gpc_utils.c b/sm/lib/gpc/gpc_utils.c index 77fdb9d..b743f4c 100644 --- a/sm/lib/gpc/gpc_utils.c +++ b/sm/lib/gpc/gpc_utils.c @@ -96,7 +96,7 @@ int poly_greatest_real_root(unsigned int n, const double*a, double *root) { fprintf (stderr, "root z%d = %+.18f + %+.18f i \n", i, z[2*i], z[2*i+1]); } /* XXX ==0 is bad */ - if( (z[2*i+1]==0) ) /* real root */ + if( z[2*i+1]==0 ) /* real root */ if(!assigned || (z[2*i]>lambda)) { assigned = 1; lambda = z[2*i]; diff --git a/sm/lib/json-c/test2.c b/sm/lib/json-c/test2.c index d91e5e3..68cd81f 100644 --- a/sm/lib/json-c/test2.c +++ b/sm/lib/json-c/test2.c @@ -7,7 +7,7 @@ int main(int argc, char **argv) { - argc = argc; argv = argv; + argc = 0; argv = (char**)0; struct json_object *new_obj; mc_set_debug(1); -- GitLab