From: Jerome Benoit Date: Sat, 26 Dec 2020 15:41:15 +0000 (+0000) Subject: examples/simple: silence gcc Warnings X-Git-Tag: archive/raspbian/0.8.5+ds1-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e72a6e29c6b3d75d6cfdec897e36ee767860c9c;p=igraph.git examples/simple: silence gcc Warnings Origin: debian Forwarded: https://github.com/igraph/igraph/pull/1580 Last-Update: 2020-12-20 Silence gcc Warnings to ease tests ; meant to be submitted to the upstream maintainer. Gbp-Pq: Name upstream-fix-examples_simple-gcc-warnings.patch --- diff --git a/examples/simple/igraph_community_leiden.c b/examples/simple/igraph_community_leiden.c index e5457b2..96ed6ac 100644 --- a/examples/simple/igraph_community_leiden.c +++ b/examples/simple/igraph_community_leiden.c @@ -28,7 +28,6 @@ int main() { igraph_vector_t membership, degree; igraph_integer_t nb_clusters; igraph_real_t quality; - long int i; /* Set default seed to get reproducible results */ igraph_rng_seed(igraph_rng_default(), 0); @@ -51,7 +50,7 @@ int main() { /* Start from existing membership to improve it further */ igraph_community_leiden(&graph, NULL, NULL, 0.05, 0.01, 1, &membership, &nb_clusters, &quality); - printf("Iterated Leiden, using CPM (resolution parameter 0.05), quality is %.4f.\n", nb_clusters, quality); + printf("Iterated Leiden, using CPM (resolution parameter 0.05), quality is %.4f.\n", quality); printf("Membership: "); igraph_vector_print(&membership); printf("\n");