Snippets for graphviz 15.1.1 from Nix aarch64-darwin
Sourced from https://hydra.nixos.org/log/bqvfwhxxvkypm9bjfxza3x3j79bisbry-graphviz-15.1.1.drv.
-
dtrenew.c:37:24: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 37 | { s = dt->data.htab + HINDEX(dt->data.ntab, e->hash); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
dthash.c:30:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 30 | if (!(s = realloc(olds, n * sizeof(Dtlink_t*)))) | ^ ~ -
dthash.c:42:17: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 42 | if((is = s + HINDEX(n,t->hash)) == hs) | ^~~~~~~~~~~~~~~~~ -
dthash.c:127:24: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 127 | s = dt->data.htab + HINDEX(dt->data.ntab, hsh); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
dthash.c:135:28: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 135 | *(s = dt->data.htab + HINDEX(dt->data.ntab, hsh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
dthash.c:192:23: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 192 | s = dt->data.htab + HINDEX(dt->data.ntab, hsh); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
xdot.c:889:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 889 | stops = gv_calloc(clr->u.ring.n_stops, sizeof(stops[0])); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~ -
xdot.c:924:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 924 | stops = gv_calloc(clr->u.ling.n_stops, sizeof(stops[0])); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~ -
grammar.c:992:9: warning: variable 'aagnerrs' set but not used [-Wunused-but-set-variable] 992 | int yynerrs = 0; | ^ -
scan.c:1418:8: warning: 'switch' missing 'default' label [-Wswitch-default] 1418 | else switch ( yy_get_next_buffer( yyscanner ) ) | ^ -
shortest.c:126:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 126 | if ((p1.x == p2.x && p2.x == p3.x && p3.y > p2.y) || | ~~~~ ^ ~~~~ -
shortest.c:126:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 126 | if ((p1.x == p2.x && p2.x == p3.x && p3.y > p2.y) || | ~~~~ ^ ~~~~ -
shortest.c:130:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 130 | && polyp->ps[pi].x == polyp->ps[pi + 1].x | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
shortest.c:131:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 131 | && polyp->ps[pi].y == polyp->ps[pi + 1].y) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
shortest.c:140:36: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 140 | if (pi > 0 && polyp->ps[pi].x == polyp->ps[pi - 1].x && | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
shortest.c:141:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 141 | polyp->ps[pi].y == polyp->ps[pi - 1].y) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
shortestpth.c:37:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 37 | int *dad = gv_calloc(V, sizeof(int)); | ~~~~~~~~~ ^ -
shortestpth.c:38:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 38 | COORD *vl = gv_calloc(V + 1, sizeof(COORD)); // One extra for sentinel | ~~~~~~~~~ ~~^~~ -
shortestpth.c:54:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 54 | if (val[k] == unseen) | ~~~~~~ ^ ~~~~~~ -
shortestpth.c:69:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 69 | if ((wkt != 0) && (val[t] < newpri)) { | ~~~ ^ ~ -
shortestpth.c:99:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 99 | int *dad = gv_calloc(V + 2, sizeof(int)); | ~~~~~~~~~ ~~^~~ -
route.c:326:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 326 | if (xcoeff[1] == 0) { | ~~~~~~~~~ ^ ~ -
route.c:327:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 327 | if (ycoeff[1] == 0) { | ~~~~~~~~~ ^ ~ -
route.c:346:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 346 | if (xroots[i] == yroots[j]) | ~~~~~~~~~ ^ ~~~~~~~~~ -
visibility.c:31:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 31 | array2 arr = gv_calloc(V + extra, sizeof(COORD*)); | ~~~~~~~~~ ~~^~~~~~~ -
visibility.c:69:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 69 | if (a.x != b.x) /* not vertical */ | ~~~ ^ ~~~ -
visibility.c:258:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 258 | COORD *vadj = gv_calloc(V + 2, sizeof(COORD)); | ~~~~~~~~~ ~~^~~ -
sfcvt.c:107:15: warning: implicit conversion from 'long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 107 | dval -= n; | ~~ ^ -
sfprint.c:141:15: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 141 | FMTSET(ft, form, LEFTP, 0, 0, 0, 0, 0, NULL, 0); | ^ -
sfprint.c:210:17: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 210 | FMTSET(ft, form, '.', dot, 0, 0, 0, 0, NULL, 0); | ^ -
sfprint.c:251:14: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 251 | FMTSET(ft, form, 'I', sizeof(int), 0, 0, 0, 0, NULL, 0); | ^ -
sfprint.c:315:13: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 315 | FMTSET(ft, form, fmt, size, flags, width, precis, base, t_str, n_str); | ^ -
sfprint.c:381:12: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 381 | buf[0] = fmt; | ~ ^~~ -
sfprint.c:484:45: warning: implicit conversion changes signedness: 'unsigned long long' to 'long long' [-Wsign-conversion] 484 | } while ((lv = (unsigned long long)lv >> n)); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~ -
sfprint.c:488:45: warning: implicit conversion changes signedness: 'unsigned long long' to 'long long' [-Wsign-conversion] 488 | } while ((lv = (unsigned long long)lv / (unsigned long long)base)); | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -
sfprint.c:538:33: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 538 | } while ((v = (unsigned)v >> n)); | ~ ~~~~~~~~~~~~^~~~ -
sfprint.c:542:33: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 542 | } while ((v = (unsigned)v / (unsigned)base)); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
sfprint.c:593:16: warning: implicit conversion changes signedness: 'unsigned char' to 'char' [-Wsign-conversion] 593 | *--sp = _Sfdec[(base <<= 1) + 1]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
sfprint.c:594:16: warning: implicit conversion changes signedness: 'unsigned char' to 'char' [-Wsign-conversion] 594 | *--sp = _Sfdec[base]; | ~ ^~~~~~~~~~~~ -
sfprint.c:756:11: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 756 | *--sp = fmt; | ~ ^~~ -
sfprint.c:345:12: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 345 | if ((v = size) >= 0) { | ~ ^~~~ -
sfprint.c:349:11: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 349 | v = strlen(sp); | ~ ^~~~~~~~~~ -
sfprint.c:547:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 547 | && (n = endsp - sp) > 3) { | ~ ~~~~~~^~~~ -
sfprint.c:581:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 581 | n = width - (n + (endsp - sp)); | ~ ~~~~~~^~~~~~~~~~~~~~~~~~~~ -
sfprint.c:640:12: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 640 | if ((n = sfslen()) > precis) | ~ ^~~~~~~~ -
sfprint.c:748:63: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 748 | n = (endsp - sp) + (endep - ep) + (precis <= 0 ? 0 : precis) + | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 749 | ((flags & SFFMT_PREFIX) ? 1 : 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
sfprint.c:778:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 778 | if ((n = endsp - sp) > 0) | ~ ~~~~~~^~~~ -
sfprint.c:786:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 786 | if ((n = endep - (sp = ep)) > 0) | ~ ~~~~~~^~~~~~~~~~~ -
sfvscanf.c:170:15: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 170 | FMTSET(ft, form, LEFTP, 0, 0, 0, 0, 0, NULL, 0); | ^ -
sfvscanf.c:196:14: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 196 | FMTSET(ft, form, '.', dot, 0, 0, 0, 0, NULL, 0); | ^ -
sfvscanf.c:237:14: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 237 | FMTSET(ft, form, 'I', sizeof(int), 0, 0, 0, 0, NULL, 0); | ^ -
sfvscanf.c:299:13: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 299 | FMTSET(ft, form, fmt, size, flags, width, 0, base, t_str, n_str); | ^ -
sfvscanf.c:359:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 359 | *val++ = inp; | ~ ^~~ -
sfvscanf.c:368:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 368 | *val++ = inp; | ~ ^~~ -
sfvscanf.c:372:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 372 | *val++ = inp; | ~ ^~~ -
sfvscanf.c:376:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 376 | *val++ = inp; | ~ ^~~ -
sfvscanf.c:450:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long long' [-Wsign-conversion] 450 | (argv.lu << 3) + (argv.lu << 1) + (inp - '0'); | ~ ~~~~^~~~~ -
sfvscanf.c:481:35: warning: implicit conversion changes signedness: 'char' to 'unsigned long long' [-Wsign-conversion] 481 | argv.lu = (argv.lu << shift) + sp[inp]; | ~ ^~~~~~~ -
sfvscanf.c:486:33: warning: implicit conversion changes signedness: 'char' to 'unsigned long long' [-Wsign-conversion] 486 | argv.lu = (argv.lu * base) + sp[inp]; | ~ ^~~~~~~ -
sfvscanf.c:486:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long long' [-Wsign-conversion] 486 | argv.lu = (argv.lu * base) + sp[inp]; | ~ ^~~~ -
sfvscanf.c:538:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 538 | *argv.s++ = inp; | ~ ^~~ -
sfvscanf.c:543:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 543 | *argv.s++ = inp; | ~ ^~~ -
sfvscanf.c:558:16: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 558 | *argv.s++ = inp; | ~ ^~~ -
chresc.c:138:16: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 138 | *p = (char *) s; | ^ -
stresc.c:41:9: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 41 | *t++ = c; | ~ ^ -
fPQ.c:28:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 28 | pq->pq = gv_calloc(sz + 1, sizeof(snode *)); | ~~~~~~~~~ ~~~^~~ -
sgraph.c:42:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 42 | int* adj = gv_calloc(6 * g->nnodes + 2 * maxdeg, sizeof(int)); | ~~^~~~~~~~~~~ ~ -
sgraph.c:43:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 43 | g->edges = gv_calloc(3 * g->nnodes + maxdeg, sizeof(sedge)); | ~~^~~~~~~~~~~ ~ -
sgraph.c:165:7: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 165 | d = -(N_VAL(n) + E_WT(e)); | ~ ^~~~~~~~~~~~~~~~~~~~~ -
ortho.c:107:10: warning: implicit conversion changes signedness: 'int' to 'bend' [-Wsign-conversion] 107 | sp.l1 = l1; | ~ ^~ -
ortho.c:108:10: warning: implicit conversion changes signedness: 'int' to 'bend' [-Wsign-conversion] 108 | sp.l2 = l2; | ~ ^~ -
ortho.c:113:10: warning: implicit conversion changes signedness: 'int' to 'bend' [-Wsign-conversion] 113 | sp.l2 = l1; | ~ ^~ -
ortho.c:114:10: warning: implicit conversion changes signedness: 'int' to 'bend' [-Wsign-conversion] 114 | sp.l1 = l2; | ~ ^~ -
ortho.c:578:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 578 | if (S1.p.p1 == S2.p.p1) { | ~~~~~~~ ^ ~~~~~~~ -
ortho.c:620:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 620 | if (S1.p.p2 == S2.p.p1) { | ~~~~~~~ ^ ~~~~~~~ -
ortho.c:647:49: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 647 | if (S1.isVert != S2.isVert || S1.comm_coord != S2.comm_coord) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ -
ortho.c:713:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 713 | if (next.comm_coord == current.p.p1) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ -
ortho.c:721:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 721 | if (next.comm_coord == current.p.p1) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ -
ortho.c:734:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 734 | assert(s1.comm_coord == s2.comm_coord); | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ -
ortho.c:735:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 735 | returnpartition.c:634:28: warning: mimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 634 | s 1.p.p1 == s2.p.p1 && | ~~~~~~~ ^ ~~~~~~~ -
735 | returnpartition.c:634:28: warning: mimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 634 | s 1.p.p1 == s2.p.p1 && | ~~~~~~~ ^ ~~~~~~~ -
ortho.c:736:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
-
partition.c:635:21: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 635 | mon = gv_calloc(nsegs, sizeof(int)); | ~~~~~~~~~ ^~~~~ -
ortho.c:800:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 800 | if(prev1->comm_coord==seg1->p.p1) { | ~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~ -
ortho.c:843:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 843 | if(prev1->comm_coord==seg1->p.p1) { | ~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~ -
ortho.c:945:44: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 945 | if (LIST_GET(segs, i)->prev->comm_coord == | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 946 | LIST_GET(segs, j)->prev->comm_coord) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ortho.c:1055:46: warning: cast from function call of type 'size_t' (aka 'unsigned long') to non-matching type 'double' [-Wbad-function-cast] 1055 | OPTIONAL_VALUE(seg->track_no) / ((double)LIST_SIZE(&chp->seg_list) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
ortho.c:1063:14: warning: cast from function call of type 'size_t' (aka 'unsigned long') to non-matching type 'double' [-Wbad-function-cast] 1063 | ((double)LIST_SIZE(&chp->seg_list) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
ortho.c:1160:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1160 | epair_t* es = gv_calloc(agnedges(g), sizeof(epair_t)); | ~~~~~~~~~ ^~~~~~~~~~~ -
trapezoid.c:858:15: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 858 | return (int)ceil(n / v); | ^~~~~~~~~~~ -
QuadTree.c:28:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 28 | nd->coord = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:45:58: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 45 | *center = gv_recalloc(*center, dim * *nsupermax, dim * new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~ -
QuadTree.c:45:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 45 | *center = gv_recalloc(*center, dim * *nsupermax, dim * new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ~~~~^~~~~~~~~~~~ -
QuadTree.c:46:64: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 46 | *supernode_wgts = gv_recalloc(*supernode_wgts, *nsupermax, new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ^~~~~~~~~~~~~ -
QuadTree.c:46:52: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 46 | *supernode_wgts = gv_recalloc(*supernode_wgts, *nsupermax, new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ^~~~~~~~~~ -
QuadTree.c:47:54: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 47 | *distances = gv_recalloc(*distances, *nsupermax, new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ^~~~~~~~~~~~~ -
QuadTree.c:47:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 47 | *distances = gv_recalloc(*distances, *nsupermax, new_nsupermax, sizeof(double)); | ~~~~~~~~~~~ ^~~~~~~~~~ -
QuadTree.c:104:47: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 104 | if (!*center) *center = gv_calloc(nsupermax * dim, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~^~~~~ -
QuadTree.c:105:53: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 105 | if (!*supernode_wgts) *supernode_wgts = gv_calloc(nsupermax, sizeof(double)); | ~~~~~~~~~ ^~~~~~~~~ -
QuadTree.c:106:43: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 106 | if (!*distances) *distances = gv_calloc(nsupermax, sizeof(double)); | ~~~~~~~~~ ^~~~~~~~~ -
QuadTree.c:125:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 125 | qt->data = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:158:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 158 | if (p == -1){ | ~ ^ ~~ -
QuadTree.c:190:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 190 | if (p == -1){ | ~ ^ ~~ -
QuadTree.c:319:20: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 319 | xmin = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:320:20: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 320 | xmax = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:321:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 321 | center = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:364:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 364 | q->center = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
QuadTree.c:459:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 459 | q->average = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
clustering.c:37:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 37 | grid->matching = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
clustering.c:48:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 48 | grid->deg = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
clustering.c:51:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 51 | double *indeg = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
clustering.c:106:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 106 | double *deg_new = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
clustering.c:107:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 107 | double *deg_inter = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
clustering.c:108:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 108 | int *mask = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
clustering.c:315:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 315 | double *u = gv_calloc(cgrid->n, smq.c:176:41: warning: iimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
315 | double *u = gv_calloc(cgrid->n, smq.c:176:41: warning: iimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
clustering.c:332:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 332 | matching = gv_camq.cl:lo186c:(33g:r id-warning: >n,implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
mq.c:189:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 189 | grid->wgt = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
mq.c:242:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 242 | LIST(int) *neighbors = gv_calloc(n, sizeof(neighbors[0])); | ~~~~~~~~~ ^ -
mq.c:248:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 248 | double *deg_intra_new = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
mq.c:249:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 249 | double *wgt_new = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
mq.c:250:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 250 | double *deg_inter = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
mq.c:251:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 251 | int *mask = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
mq.c:252:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 252 | double *dout_new = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
general.c:108:12: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 108 | qsort(v, n, sizeof(int), comp_ascend_int); | ~~~~~ ^ -
mq.c:482:51: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 482 | deg_intra_new = gv_recalloc(deg_intra_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^~ -
mq.c:482:48: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 482 | deg_intra_new = gv_recalloc(deg_intra_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^ -
mq.c:483:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 483 | wgt_new = gv_recalloc(wgt_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^~ -
mq.c:483:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 483 | wgt_new = gv_recalloc(wgt_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^ -
mq.c:487:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 487 | dout_new = gv_recalloc(dout_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^~ -
mq.c:487:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 487 | dout_new = gv_recalloc(dout_new, n, nc, sizeof(double)); | ~~~~~~~~~~~ ^ -
DotIO.c:217:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 217 | *xsplines = gv_calloc(nedges, sizeof(char *)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:339:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 339 | int *I = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:340:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 340 | int *J = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:341:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 341 | double *val = gv_calloc(nedges, sizeof(double)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:365:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 365 | *clusters = gv_calloc(nnodes, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:375:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 375 | memset(*clusters, 0, sizeof(int) * nnodes); | ~ ^~~~~~ -
DotIO.c:445:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 445 | *label_sizes = gv_calloc(dim * nnodes, sizeof(double)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
DotIO.c:447:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 447 | *rgb_r = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~~~~~~~~ ~~^~~~~~~~~~ -
DotIO.c:448:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 448 | *rgb_g = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~~~~~~~~ ~~^~~~~~~~~~ -
DotIO.c:449:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 449 | *rgb_b = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~~~~~~~~ ~~^~~~~~~~~~ -
DotIO.c:502:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 502 | *x = gv_calloc(dim * nnodes, sizeof(double)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
mq.c:557:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 557 | double *u = gv_calloc(cgrid->n, sizeof(double)); | ~~~~~~~~~ ~~~~~~~^ -
DotIO.c:553:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 553 | int *I = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:554:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 554 | int *J = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
DotIO.c:555:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 555 | double *val = gv_calloc(nedges, sizeof(double)); | ~~~~~~~~~ ^~~~~~ -
mq.c:574:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
DotIO.c:578:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
excc.c:200:2: warning: 'switch' missing 'default' label [-Wswitch-default] 200 | switch (exnode->op) | ^ -
excc.c:533:3: warning: 'switch' missing 'default' label [-Wswitch-default] 533 | switch (exnode->op) | ^ -
exeval.c:281:2: warning: 'switch' missing 'default' label [-Wswitch-default] 281 | switch (dp->fmt) | ^ -
exeval.c:1192:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1192 | if ((*t)->floating == v.floating) | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ -
exeval.c:1180:6: warning: 'switch' missing 'default' label [-Wswitch-default] 1180 | switch ((int)i.integer) | ^ -
exeval.c:1462:42: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1462 | v.floating = (long long)v.floating % (long long)rounded; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
exeval.c:1466:41: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1466 | v.floating = (long long)v.floating & (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1469:41: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1469 | v.floating = (long long)v.floating | (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1472:41: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1472 | v.floating = (long long)v.floating ^ (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1475:41: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1475 | v.floating = (long long)v.floating << (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1481:50: warning: implicit conversion from 'unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1481 | v.floating = (unsigned long long)v.floating >> (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1526:48: warning: implicit conversion changes signedness: 'unsigned long long' to 'long long' [-Wsign-conversion] 1526 | v.integer = (unsigned long long)v.integer >> r.integer; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
exeval.c:1034:2: warning: 'switch' missing 'default' label [-Wswitch-default] 1034 | switch (exnode->op) | ^ -
exeval.c:1605:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 1605 | v.integer = v.floating; | ~ ~~^~~~~~~~ -
exeval.c:1630:17: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1630 | v.floating = ~(long long)v.floating; | ~ ^~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1642:39: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1642 | v.floating = (long long)v.floating & (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1645:39: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1645 | v.floating = (long long)v.floating | (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1648:39: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1648 | v.floating = (long long)v.floating ^ (long long)r.floating; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
exeval.c:1660:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'long long' [-Wfloat-conversion] 1660 | if ((r.integer = r.floating) == 0) | ~ ~~^~~~~~~~ -
exeval.c:1663:40: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1663 | v.floating = (long long)v.floating % r.integer; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -
exeval.c:1672:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1672 | v.integer = v.floating == r.floating; | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
exeval.c:1675:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1675 | v.integer = v.floating != r.floating; | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
exeval.c:1602:3: warning: 'switch' missing 'default' label [-Wswitch-default] 1602 | switch (exnode->op) | ^ -
exeval.c:1723:3: warning: 'switch' missing 'default' label [-Wswitch-default] 1723 | switch (exnode->op) | ^ -
exeval.c:1748:18: warning: implicit conversion from 'unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 1748 | v.floating = (unsigned long long)v.integer;excontext.c
-
excontext.c:44:35: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion] 44 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ~ ~~^~~~~~~~~~~~~~~~ -
excontext.c:44:54: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 44 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ -
excontext.c:58:27: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 58 | if ((n = (p->linep - t) - (e - s)) > 0) | ~ ~~~~~~~~~~~~~~~^~~~~~~~~ -
exeval.c:1831:46: warning: implicit conversion changes signedness: 'unsigned long long' to 'long long' [-Wsign-conversion] 1831 | v.integer = (unsigned long long)v.integer >> r.integer; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
exeval.c:1741:3: warning: 'switch' missing 'default' label [-Wswitch-default] 1741 | switch (exnode->op) | ^ -
exeval.c:1848:3: warning: 'switch' missing 'default' label [-Wswitch-default] 1848 | switch (exnode->op) | ^ -
exeval.c:1912:3: warning: 'switch' missing 'default' label [-Wswitch-default] 1912 | switch (exnode->op) | ^ -
exexpr.c:27:30: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] 27 | Exid_t *const sym = name ? dtmatch(ex->symbols, name) : &ex->main; | ^ -
extoken.c:302:19: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 302 | putcontext(ex, c); | ~~~~~~~~~~~~~~~^~ -
extoken.c:340:6: warning: 'switch' missing 'default' label [-Wswitch-default] 340 | switch (lex(ex)) | ^ -
extoken.c:332:14: warning: 'switch' missing 'default' label [-Wswitch-default] 332 | for (;;) switch (lex(ex)) | ^ -
extoken.c:592:24: warning: implicit conversion changes signedness: 'unsigned long long' to 'long long' [-Wsign-conversion] 592 | ex_lval.integer = strtoull(s, &e, b); | ~ ^~~~~~~~~~~~~~~~~~ -
extoken.c:637:5: warning: 'switch' missing 'default' label [-Wswitch-default] 637 | switch (ex_lval.id->lex) | ^ -
extoken.c:849:24: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 849 | return ex_lval.id->lex; | ~~~~~~ ~~~~~~~~~~~~^~~ -
exzero.c:29:2: warning: 'switch' missing 'default' label [-Wswitch-default] 29 | switch (type) | ^ -
extype.c:27:2: warning: 'switch' missing 'default' label [-Wswitch-default] 27 | switch (type) | ^ -
../../lib/expr/exgram.h:495:61: warning: implicit conversion from 'long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 495 | x->data.constant.value.floating = x->data.constant.value.integer; | ~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
../../lib/expr/exgram.h:717:4: warning: 'switch' missing 'default' label [-Wswitch-default] 717 | switch (t) | ^ -
../../lib/expr/exgram.h:809:28: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 809 | error_info.file = (char*)name; | ^ -
exnospace.c:32:16: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 32 | return (char*)null; | ^ -
htmllex.c:380:24: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 380 | p->color = (char *)v; | ^ -
htmllex.c:386:23: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 386 | p->name = (char *)v; | ^ -
htmllex.c:719:10: warning: implicit conversion changes signedness: 'const char' to 'unsigned char' [-Wsign-conversion] 719 | c = *s++; | ~ ^~~~ -
arrows.c:260:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 260 | if (arrowsize == 0) { | ~~~~~~~~~ ^ ~ -
arrows.c:364:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 364 | if (p.y == q.y) { // horizontal segment | ~~~ ^ ~~~ -
htmllex.c:1083:11: warning: implicit conversion changes signedness: 'enum XML_Status' to 'int' [-Wsign-conversion] 1083 | rv = XMarrows.c:401:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 401 | if (p.y == q.y) { // horizontal segment | ~~~ ^ ~~~ -
1083 | rv = XMarrows.c:401:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 401 | if (p.y == q.y) { // horizontal segment | ~~~ ^ ~~~ -
arrows.c:425:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 425 | if (p.y == q.y) { // horizontal segment | ~~~ ^ ~~~ -
htmllex.c:1086:11: warning: implicit conversion changes signedness: 'enum XML_Status' to 'int' [-Wsign-conversion] 1086 | rv = XML_Parse(ctx->parser, s, (int)len, len ? 0 : 1); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
arrows.c:451:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 451 | if ((base_left.x == P.x && base_left.y == P.y) || | ~~~~~~~~~~~ ^ ~~~ -
arrows.c:451:42: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 451 | if ((base_left.x == P.x && base_left.y == P.y) || | ~~~~~~~~~~~ ^ ~~~ -
arrows.c:452:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 452 | (base_right.x == P.x && base_right.y == P.y)) { | ~~~~~~~~~~~~ ^ ~~~ -
arrows.c:452:44: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 452 | (base_right.x == P.x && base_right.y == P.y)) { | ~~~~~~~~~~~~ ^ ~~~ -
arrows.c:544:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 544 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:544:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 544 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:668:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 668 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:668:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 668 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:884:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 884 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:884:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 884 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:999:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 999 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:999:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 999 | if (u.x != 0 || u.y != 0) { | ~~~ ^ ~ -
arrows.c:1040:39: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1040 | if (!(flag & ARR_MOD_INV) && (u.x != 0 || u.y != 0)) { | ~~~ ^ ~ -
arrows.c:1040:51: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1040 | if (!(flag & ARR_MOD_INV) && (u.x != 0 || u.y != 0)) { | ~~~ ^ ~ -
htmlparse.c:1108:9: warning: variable 'htmlnerrs' set but not used [-Wunused-but-set-variable] 1108 | int yynerrs = 0; | ^ -
htmltable.c:1604:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1604 | assert(tbl->column_count <= DBL_MAX); | ~~~~~^~~~~~~~~~~~ ~~ -
htmltable.c:1613:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1613 | assert(tbl->row_count <= DBL_MAX); | ~~~~~^~~~~~~~~ ~~ -
htmltable.c:1671:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1671 | assert(tbl->column_count <= DBL_MAX); | ~~~~~^~~~~~~~~~~~ ~~ -
htmltable.c:1673:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 1673 | assert(tbl->row_count <= DBL_MAX); | ~~~~~^~~~~~~~~ ~~ -
htmltable.c:1705:5: warning: 'switch' missing 'default' label [-Wswitch-default] 1705 | switch (agobjkind(obj)) { | ^ -
htmltable.c:1868:5: warning: 'switch' missing 'default' label [-Wswitch-default] 1868 | switch (agobjkind(obj)) { | ^ -
postproc.c:157:25: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 157 | bool shift = Offset.x || Offset.y; | ~~~~~~~^ ~~ -
postproc.c:157:37: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 157 | bool shift = Offset.x || Offset.y; | ~~ ~~~~~~~^ -
routespl.c:945:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 945 | if (magV == 0) return; /* if midpoint == centroid, don't divide by zero */ | ~~~~ ^ ~ -
splines.c:551:2: warning: 'switch' missing 'default' label [-Wswitch-default] 551 | switch (et) { | ^ -
splines.c:749:2: warning: 'switch' missing 'default' label [-Wswitch-default] 749 | switch (et) { | ^ -
splines.c:1013:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1013 | case 65: if(tp.y == hp.y) | ~~~~ ^ ~~~~ -
splines.c:1087:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1087 | if(tp.y == hp.y) | ~~~~ ^ ~~~~ -
psusershape.c:49:23: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] 49 | usershape_t *us = dtmatch(EPSF_contents, str); | ^ -
timing.c:25:13: warning: implicit conversion from 'clock_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 25 | return (S - T) / (double)CLOCKS_PER_SEC; | ~~^~~ ~ -
labels.c:121:5: warning: 'switch' missing 'default' label [-Wswitch-default] 121 | switch (agobjkind(obj)) { | ^ -
labels.c:149:6: warning: 'switch' missing 'default' label [-Wswitch-default] 149 | switch (agobjkind(obj)) { | ^ -
labels.c:295:5: warning: 'switch' missing 'default' label [-Wswitch-default] 295 | switch (agobjkind(obj)) { | ^ -
shapes.c:739:5: warning: 'switch' missing 'default' label [-Wswitch-default] 739 | switch (mode.shape) { | ^ -
shapes.c:2335:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2335 | assert(cosx != 0 || sinx != 0); | ~~~~ ^ ~ -
shapes.c:2335:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2335 | assert(cosx != 0 || sinx != 0); | ~~~~ ^ ~ -
shapes.c:2618:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2618 | if (angle == M_PI) | ~~~~~ ^ ~~~~ -
shapes.c:2620:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2620 | else if (angle == M_PI * 0.75) | ~~~~~ ^ ~~~~~~~~~~~ -
shapes.c:2622:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2622 | else if (angle == M_PI * 0.5) | ~~~~~ ^ ~~~~~~~~~~ -
shapes.c:2624:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2624 | else if (angle == 0) | ~~~~~ ^ ~ -
shapes.c:2626:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2626 | else if (angle == M_PI * -0.25) | ~~~~~ ^ ~~~~~~~~~~~~ -
shapes.c:2628:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2628 | else if (angle == M_PI * -0.5) | ~~~~~ ^ ~~~~~~~~~~~ -
shapes.c:2864:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2864 | if (p.x == 0 && p.y == 0) | ~~~ ^ ~ -
shapes.c:2864:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2864 | if (p.x == 0 && p.y == 0) | ~~~ ^ ~ -
shapes.c:2871:14: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 2871 | pp->order = (int) (MC_SCALE * angle / (2 * M_PI)); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
geom.c:70:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 70 | if (p.x == q.x) { | ~~~ ^ ~~~ -
geom.c:75:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 75 | } else if (p.y == q.y) { | ~~~ ^ ~~~ -
utils.c:708:2: warning: 'switch' missing 'default' label [-Wswitch-default] 708 | switch (agobjkind(obj)) { | ^ -
utils.c:1042:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1042 | edge_t **edgelist = gv_calloc(ecnt, sizeof(edge_t*)); | ~~~~~~~~~ ^~~~ -
utils.c:1168:19: warning: implicit conversion changes signedness: 'unsigned char' to 'char' [-Wsign-conversion] 1168 | char buf[] = {c, '\0'}; | ~^ -
utils.c:1174:9: warning: implicit conversion changes signedness: 'char' to 'unsigned char' [-Wsign-conversion] 1174 | c = *p; | ~ ^~ -
utils.c:1226:14: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1226 | v = htmlEntity (&s); | ~ ^~~~~~~~~~~~~~~ -
utils.c:1229:8: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] 1229 | c = v; | ~ ^ -
utils.c:1270:10: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1270 | v = htmlEntity (&s); | ~ ^~~~~~~~~~~~~~~ -
utils.c:1302:45: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 1302 | unsigned char outc = (c & 0x03) << 6; | ~~~~ ~~~~~~~~~~~^~~~ -
taper.c:70:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 70 | if (x == 0 && y == 0) | ~ ^ ~ -
taper.c:70:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 70 | if (x == 0 && y == 0) | ~ ^ ~ -
emit.c:229:5: warning: 'switch' missing 'default' label [-Wswitch-default] 229 | switch (agobjkind(obj)) { | ^ -
emit.c:1014:45: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1014 | int* laylist = gv_calloc(gvc->numLayers + 2, sizeof(int)); | ~~~~~~~~~ ~~~~~~~~~~~~~~~^~~ -
emit.c:1249:18: warning: operand of ? changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1249 | job->width = ROUND((pageSize.x + 2*margin.x) * job->dpi.x / POINTS_PER_INCH); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
emit.c:1250:19: warning: operand of ? changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1250 | job->height = ROUND((pageSize.y + 2*margin.y) * job->dpi.y / POINTS_PER_INCH); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
emit.c:1429:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1429 | if (p->x1 == p->x0 && p->y1 == p->y0) { | ~~~~~ ^ ~~~~~ -
emit.c:1429:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1429 | if (p->x1 == p->x0 && p->y1 == p->y0) { | ~~~~~ ^ ~~~~~ -
emit.c:1670:17: warning: implicit conversion changes signedness: 'shape_kind' to 'int' [-Wsign-conversion] 1670 | shape = shapeOf(n); | ~ ^~~~~~~~~~ -
emit.c:1811:28: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 1811 | ND_state(n) = gvc->common.viewNum; /* mark node as drawn */ | ~ ~~~~~~~~~~~~^~~~~~~ -
emit.c:3159:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 3159 | if (bb.LL.x == bb.UR.x && bb.LL.y == bb.UR.y) { | ~~~~~~~ ^ ~~~~~~~ -
emit.c:3159:39: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 3159 | if (bb.LL.x == bb.UR.x && bb.LL.y == bb.UR.y) { | ~~~~~~~ ^ ~~~~~~~ -
pack.c:300:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 300 | void **alg = gv_calloc(agnnodes(g), sizeof(void *)); | ~~~~~~~~~ ^~~~~~~~~~~ -
pack.c:622:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 622 | nr = ceil(sqrt(ng)); | ~ ^~~~~~~~~~~~~~ -
pack.c:622:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 622 | nr = ceil(sqrt(ng)); | ~~~~ ^~ -
pack.c:631:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 631 | nc = ceil(sqrt(ng)); | ~ ^~~~~~~~~~~~~~ -
pack.c:631:22: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 631 | nc = ceil(sqrt(ng)); | ~~~~ ^~ -
pack.c:917:28: warning: implicit conversion changes signedness: 'int' to 'packval_t' (aka 'unsigned int') [-Wsign-conversion] 917 | pinfo->vals[i] = v; | ~ ^ -
pack.c:1288:19: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1288 | pinfo->margin = getPack(g, dfltMargin, dfltMargin); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
xlabels.c:77:20: warning: cast from function call of type 'double' to non-matching type 'unsigned int' [-Wbad-function-cast] 77 | return (unsigned)floor(log2(round(fmax(maxx, maxy)))) + 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
xlabels.c:161:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 161 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ~~~~~~~~~~~ ^ ~ -
xlabels.c:161:42: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 161 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ~~~~~~~~~~~ ^ ~ -
xlabels.c:494:15: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 494 | int order = xlhorder(xlp); | ~~~~~ ^~~~~~~~~~~~~ -
xlabels.c:510:15: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 510 | hp->key = hd_hil_s_from_xy(pi, order); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
xlabels.c:578:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 578 | } else if (bp.area == 0) { | ~~~~~~~ ^ ~ -
gvplugin.c:57:12: warning: implicit conversion changes signedness: 'int' to 'api_t' [-Wsign-conversion] 57 | return -1; /* invalid api */ | ~~~~~~ ^~ -
gvrender.c:197:50: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 197 | (bsearch(name, features->knowncolors, features->sz_knowncolors, | ~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~ -
gvevent.c:124:9: warning: 'switch' missing 'default' label [-Wswitch-default] 124 | switch (agobjkind(obj)) { | ^ -
gvevent.c:151:9: warning: 'switch' missing 'default' label [-Wswitch-default] 151 | switch (agobjkind(obj)) { | ^ -
gvevent.c:228:9: warning: 'switch' missing 'default' label [-Wswitch-default] 228 | switch (agobjkind(obj)) { | ^ -
gvevent.c:249:9: warning: 'switch' missing 'default' label [-Wswitch-default] 249 | switch (agobjkind(obj)) { | ^ -
gvevent.c:268:5: warning: 'switch' missing 'default' label [-Wswitch-default] 268 | switch (button) { | ^ -
gvevent.c:345:5: warning: 'switch' missing 'default' label [-Wswitch-default] 345 | switch (job->button) { | ^ -
gvevent.c:435:20: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 435 | dflt_width = job->width; | ~ ~~~~~^~~~~ -
gvevent.c:436:21: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] 436 | dflt_height = job->height; | ~ ~~~~~^~~~~~ -
gvplugin.c:480:82: warning: implicit conversion changes signedness: 'int' to 'api_t' [-Wsign-conversion] 480 | fprintf(stderr, " %s\t: %s\n", api_names[api], gvplugin_list(gvc, api, ":")); | ~~~~~~~~~~~~~ ^~~ -
gvplugin.c:482:82: warning: implicit conversion changes signedness: 'int' to 'api_t' [-Wsign-conversion] 482 | fprintf(stderr, " %s\t: %s\n", api_names[api], gvplugin_list(gvc, api, "?")); | ~~~~~~~~~~~~~ ^~~ -
gvconfig.c:345:27: warning: implicit conversion changes signedness: 'long' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 345 | ind = tmp - p; // byte offset | ~ ~~~~^~~ -
gvusershape.c:679:10: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] 679 | return dtmatch(ImageDict, name); | ^ -
intersection.c:170:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 170 | if (p1[0] == q1[0] && p1[1] == q1[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:170:33: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 170 | if (p1[0] == q1[0] && p1[1] == q1[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:172:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 172 | } else if (p1[0] == q2[0] && p1[1] == q2[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:172:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 172 | } else if (p1[0] == q2[0] && p1[1] == q2[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:174:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 174 | } else if (p2[0] == q1[0] && p2[1] == q1[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:174:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 174 | } else if (p2[0] == q1[0] && p2[1] == q1[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:176:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 176 | } else if (p2[0] == q2[0] && p2[1] == q2[1]){ | ~~~~~ ^ ~~~~~ -
intersection.c:176:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 176 | } else if (p2[0] == q2[0] && p2[1] == q2[1]){ | ~~~~~ ^ ~~~~~ -
furtherest_point.c:95:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 95 | if (!(*argmax)) *argmax = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
furtherest_point.c:96:42: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 96 | memcpy(*argmax, center, sizeof(double)*dim); | ~^~~ -
furtherest_point.c:136:56: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 136 | memcpy(*argmax, qt->qts[ii]->center, sizeof(double)*dim); | ~^~~ -
lab.c:229:34: warning: operand of ? changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 229 | color_lab *lab = gv_calloc(MAX(nc, 1), sizeof(color_lab)); | ~~~~~~~~~ ^~ -
lab.c:240:36: warning: operand of ? changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 240 | double *dists = gv_calloc(MAX(1, nc), sizeof(double)); | ~~~~~~~~~ ^~ -
lab.c:252:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 252 | double *colors = gv_calloc(maxpoints * cdim, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~^~~~~~ -
furtherest_point.c:196:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 196 | if (!(*argmax)) *argmax = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
furtherest_point.c:197:43: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 197 | memcpy(*argmax, average, sizeof(double)*dim); | ~^~~ -
furtherest_point.c:237:57: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 237 | memcpy(*argmax, qt->qts[ii]->average, sizeof(double)*dim); | ~^~~ -
node_distinct_coloring.c:93:9: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 93 | srand(seed); | ~~~~~ ^~~~ -
node_distinct_coloring.c:96:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 96 | double *x = gv_calloc(cdim * n, sizeof(double)); | ^~~~ ~ -
node_distinct_coloring.c:104:75: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 104 | while (iter++ < iter_max && (color_diff > color_diff_old || (color_diff == color_diff_old && color_diff_sum > color_diff_sum_old))){ | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
node_distinct_coloring.c:111:61: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 111 | memcpy(&(x[k*cdim]), &(colors[ja[j]*cdim]), sizeof(double)*cdim); | ~^~~~ -
node_distinct_coloring.c:233:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 233 | *colors = gv_calloc(cdim * n, sizeof(double)); | ^~~~ ~ -
node_distinct_coloring.c:234:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 234 | double *ctmp = gv_calloc(cdim * n, sizeof(double)); | ^~~~ ~ -
node_distinct_coloring.c:248:61: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 248 | memcpy(&((*colors)[comps[j]*cdim]), &(ctmp[jj*cdim]), cdim*sizeof(double)); | ^~~~~ -
circpos.c:250:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 250 | if (childAngle != 0) { | ~~~~~~~~~~ ^ ~ -
cluster.c:102:24: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 102 | ED_edge_type(e) = type; | ~ ^~~~ -
cluster.c:112:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 112 | ED_edge_type(ve) = type; | ~ ^~~~ -
cluster.c:119:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 119 | ED_edge_type(vcompound.c:162:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 162 | if (tmin == tmax) | ~~~~ ^ ~~~~ -
119 | ED_edge_type(vcompound.c:162:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 162 | if (tmin == tmax) | ~~~~ ^ ~~~~ -
compound.c:203:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 203 | if (tmin == tmax) | ~~~~ ^ ~~~~ -
cluster.c:134:21: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 134 | ED_edge_type(e) = type; | ~ ^~~~ -
cluster.c:350:54: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 350 | GD_rankleader(subg) = gv_calloc(GD_maxrank(subg) + 2, sizeof(node_t*)); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~ -
cluster.c:394:29: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 394 | GD_installed(clust) = pass + 1; | ~ ~~~~~^~~ -
flat.c:27:52: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 26 | GD_rank(g)[r].av = gv_recalloc(GD_rank(g)[r].av, GD_rank(g)[r].n + 1,
-
flat.c:26:70: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 26 | GD_rank(g)[r].av = gv_recalloc(GD_rank(g)[r].av, GD_rank(g)[r].n + 1, | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~ -
position.c:266:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 266 | last = (ND_rank(v) = last + width); | ~ ~~~~~^~~~~~~ -
position.c:301:37: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 301 | m0 = ED_minlen(e) * GD_nodesep(g) + width; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
position.c:307:42: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 307 | m0 = MAX(m0, width + GD_nodesep(g) + ROUND(ED_dist(e))); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -
position.c:338:29: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 338 | m0 = (ED_head_port(e).p.x - ED_tail_port(e).p.x); | ~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
dotinit.c:398:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 398 | GD_clust(cl) = gv_calloc(nclust + 1, sizeof(Agraph_t*)); | ~~~~~~~~~ ~~~~~~~^~~ -
dotinit.c:421:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 421 | GD_clust(root) = gv_calloc(nclust + 1, sizeof(Agraph_t*)); | ~~~~~~~~~ ~~~~~~~^~~ -
flat.c:193:63: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 193 | rank_t *rptr = gv_recalloc(GD_rank(g), GD_maxrank(g) + 1, r, | ~~~~~~~~~~~ ^ -
flat.c:193:58: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 193 | rank_t *rptr = gv_recalloc(GD_rank(g), GD_maxrank(g) + 1, r, | ~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~ -
mincross.c:734:13: warning: implicit conversion from 'int64_t' (aka 'long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 734 | if (cur_cross < Convergence * (double)best_cross) | ^~~~~~~~~ ~ -
position.c:992:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 992 | node_t **new_v = gv_camincross.c:759:21: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 759 | lloc(j + 1, sizeof(node_t*)); | ~~~~~~~~~ ~~^~~ -
992 | node_t **new_v = gv_camincross.c:759:21: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 759 | lloc(j + 1, sizeof(node_t*)); | ~~~~~~~~~ ~~^~~ -
position.c:1007:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1007 | && ((ED_head_port(e).p.x == ED_head_port(f).p.x && | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
position.c:1008:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1008 | ED_head_port(e).p.y == ED_head_port(f).p.y) | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
position.c:1010:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1010 | && ((ED_tail_port(e).p.x == ED_tail_port(f).p.x && | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
position.c:1011:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1011 | ED_tail_port(e).p.y == ED_tail_port(f).p.y) | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
mincross.c:764:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 764 | qsort(GD_rank(g)[r].v, GD_rank(g)[r].n, sizeof(GD_rank(g)[0].v[0]), | ~~~~~ ~~~~~~~~~~~~~~^ -
mincross.c:975:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 975 | bitarray_set(ranks, ND_rank(n), true); | ~~~~~~~~~~~~ ^~~~~~~~~~ -
mincross.c:978:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 978 | bitarray_set(ranks, i, true); | ~~~~~~~~~~~~ ^ -
mincross.c:982:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 982 | if (!bitarray_get(*ranks, i)) { | ~~~~~~~~~~~~ ^ -
mincross.c:1002:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1002 | bitarray_t rnks = bitarray_new(rnks_sz); | ~~~~~~~~~~~~ ^~~~~~~ -
mincross.c:1017:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1017 | TE_list = gv_calloc(size, sizeof(edge_t *)); | ~~~~~~~~~ ^~~~ -
mincross.c:1018:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1018 | TI_list = gv_calloc(size, sizeof(int)); | ~~~~~~~~~ ^~~~ -
mincross.c:1124:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1124 | int *cn = gv_calloc(GD_maxrank(g) + 2, | ~~~~~~~~~ ~~~~~~~~~~~~~~^~~ -
mincross.c:1138:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1138 | GD_rank(g) = gv_calloc(GD_maxrank(g) + 2, sizeof(rank_t)); | ~~~~~~~~~ ~~~~~~~~~~~~~~^~~ -
mincross.c:1141:58: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1141 | GD_rank(g)[r].av = GD_rank(g)[r].v = gv_calloc(cn[r] + 1, sizeof(node_t *)); | ~~~~~~~~~ ~~~~~~^~~ -
rank.c:186:19: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 186 | ND_ranktype(u) = kind; | ~ ^~~~ -
rank.c:191:2: warning: 'switch' missing 'default' label [-Wswitch-default] 191 | switch (kind) { | ^ -
rank.c:209:34: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 209 | ND_ranktype(GD_minset(g)) = kind; | ~ ^~~~ -
rank.c:212:34: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 212 | ND_ranktype(GD_maxset(g)) = kind; | ~ ^~~~ -
rank.c:207:2: warning: 'switch' missing 'default' label [-Wswitch-default] 207 | switch (kind) { | ^ -
rank.c:229:22: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion] 229 | GD_set_type(g) = val; | ~ ^~~ -
rank.c:238:65: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 238 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~~~~~~~~ ~~~~^~~ -
rank.c:238:44: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 238 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ -
rank.c:965:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 965 | minrk = gv_calloc(ncc + 1, sizeof(int)); | ~~~~~~~~~ ~~~~^~~ -
rank.c:1058:61: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1058 | { int *sz = arg; (void)g; agbindrec(graph,"level graph rec",sz[0],true); } | ~~~~~~~~~ ^~~~~ -
rank.c:1060:59: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1060 | { int *sz = arg; (void)g; agbindrec(node,"level node rec",sz[1],true); } | ~~~~~~~~~ ^~~~~ -
rank.c:1062:59: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 1062 | { int *sz = arg; (void)g; agbindrec(edge,"level edge rec",sz[2],true); } | ~~~~~~~~~ ^~~~~ -
dotsplines.c:331:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 331 | P.boxes = gv_calloc(n_nodes + 20 * 2 * NSUB, sizeof(boxf)); | ~~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~ -
dotsplines.c:332:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 332 | sd.Rank_box = gv_calloc(i, sizeof(boxf)); | ~~~~~~~~~ ^ -
mincross.c:1509:49: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1509 | int *Count = gv_calloc(GD_rank(Root)[r + 1].n + 1, sizeof(int)); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ -
dotsplines.c:2011:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2011 | if (b.LL.x == b.UR.x) { | ~~~~~~ ^ ~~~~~~ -
dotsplines.c:2035:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 2035 | if (ND_coord(v).x != ND_coord(n).x) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ -
layout.c:348:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 348 | el = gv_recalloc(el, cnt, cnt + 1, sizeof(edge_t*)); | ~~~~~~~~~~~ ~~~~^~~ -
layout.c:348:26: warning: implicit conversion changes signedness: 'short' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 348 | el = gv_recalloc(el, cnt, cnt + 1, sizeof(edge_t*)); | ~~~~~~~~~~~ ^~~ -
layout.c:491:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 491 | PORTS(dg) = pq = gv_calloc(sz + 1, sizeof(bport_t)); | ~~~~~~~~~ ~~~^~~ -
layout.c:558:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 558 | erec *erecs = gv_calloc(deg + 1, sizeof(erec)); | ~~~~~~~~~ ~~~~^~~ -
layout.c:573:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 573 | qsort(erecs, deg, sizeof(erec), ecmp); | ~~~~~ ^~~ -
layout.c:584:39: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 584 | while (j < deg && erecs[j].alpha == a) | ~~~~~~~~~~~~~~ ^ ~ -
layout.c:674:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 674 | bport_t *pp = gv_calloc(sz + 1, sizeof(bport_t)); | ~~~~~~~~~ ~~~^~~ -
tlayout.c:118:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 118 | if (T_T0 == -1.0) { | ~~~~ ^ ~~~~ -
tlayout.c:164:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 164 | if (D_T0 == -1.0) { | ~~~~ ^ ~~~~ -
layout.c:1006:26: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 1006 | GD_ndim(agroot(g)) = late_int(g, agattr_text(g,AGRAPH, "dim", NULL), 2, 2); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
comp.c:41:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 41 | bitarray_set(marks, ND_id(n), true); | ~~~~~~~~~~~~ ^~~~~~~~ -
356 | #define FLOOR(d) ((int)floor(d))comp.c:46:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 46 | if (!bitarray_get(*marks, ND_id(other | ^~~~~~~~ -
tlayout.c:370:13: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 370 | F483L | OO#R((ND_pos(n))[1] / T_Cell), n);defin
-
grid.c:45:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 45 | newb->mem = gv_calloc(size, sizeof(cell)); | ~~~~~~~~~ ^~~~ -
grid.c:82:28: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 82 | bp->next = newBlock(2 * (bp->endp - bp->mem)); | ~~~~~~~~ ~~^~~~~~~~~~~~~~~~~~~~~~ -
comp.c:83:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 83 | if (bitarray_get(marks, ND_id(pp->n))) | ~~~~~~~~~~~~ ^~~~~~~~~~~~ -
comp.c:92:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 92 | if (bitarray_get(marks, ND_id(n))) | ~~~~~~~~~~~~ ^~~~~~~~ -
grid.c:178:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 178 | g->listMem = gv_calloc(nsize, sizeof(node_list)); | ~~~~~~~~~ ^~~~~ -
comp.c:110:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 110 | if (bitarray_get(marks, ND_id(n))) | ~~~~~~~~~~~~ ^~~~~~~~ -
fdpinit.c:96:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 96 | GD_neato_nlist(g) = gv_calloc(nn + 1, sizeof(node_t *)); | ~~~~~~~~~ ~~~^~~ -
geometry.c:27:17: warning: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 27 | sn = nsites + 4; | ~ ~~~~~~~^~~ -
geometry.c:28:25: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 28 | sqrt_nsites = (int) sqrt(sn); | ^~~~~~~~ -
hedges.c:34:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 34 | st->hash = gv_calloc(st->hashsize, sizeof(Halfedge *)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
hedges.c:67:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 67 | (e1->reg[1]->coord.y == e2->reg[1]->coord.y && | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ -
adjust.c:233:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 233 | (*jp)->coord.x != (*ip)->coord.x || | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
adjust.c:234:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 234 | (*jp)->coord.y != (*ip)->coord.y) { | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
adjust.c:243:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 243 | (*kp)->coord.x == (*ip)->coord.x && | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
adjust.c:244:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 244 | (*kp)->coord.y == (*ip)->coord.y) { | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
adjust.c:251:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 251 | if (kp < st->endSite && (*kp)->coord.y == (*ip)->coord.y) { | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ -
neatoinit.c:205:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 205 | bitarray_t assigned = bitarray_new(agnnodes(g)); | ~~~~~~~~~~~~ ^~~~~~~~~~~ -
neatoinit.c:235:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 235 | bitarray_set(&assigned, ind, true); | ~~~~~~~~~~~~ ^~~ -
neatoinit.c:243:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 243 | if(!bitarray_get(assigned, i)) { | ~~~~~~~~~~~~ ^ -
info.c:36:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 36 | if (p.x == q.x && p.y == q.y) | ~~~ ^ ~~~ -
info.c:36:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 36 | if (p.x == q.x && p.y == q.y) | ~~~ ^ ~~~ -
neatoinit.c:442:65: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 442 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~~~~~~~~ ~~~~^~~ -
neatoinit.c:442:44: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 442 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~~~~~~~~ ^~~~~~~~~~~~~~~ -
adjust.c:526:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 526 | int* elabs = gv_calloc(nedge_nodes, sizeof(int)); | ~~~~~~~~~ ^~~~~~~~~~~ -
neatoinit.c:579:53: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 579 | if (translate && !haveBackground && (GD_bb(g).LL.x != 0||GD_bb(g).LL.y != 0)) | ~~~~~~~~~~~~~ ^ ~ -
neatoinit.c:579:73: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 579 | if (translate && !haveBackground && (GD_bb(g).LL.x != 0||GD_bb(g).LL.y != 0)) | ~~~~~~~~~~~~~ ^ ~ -
neatoinit.c:602:26: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 602 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ~ ^~~~~~~~~~~~~~~~~heap.c:124:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 124 | pq->hash = gv_calloc(pq->hashsize, sizeof(Halfedge)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
| ~ ^~~~~~~~~~~~~~~~~heap.c:124:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 124 | pq->hash = gv_calloc(pq->hashsize, sizeof(Halfedge)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
neatoinit.c:604:28: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 604 | GD_odim(g->root) = MIN(outdim, Ndim); | ~ ^~~~~~ -
adjust.c:553:24: warning: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 553 | int *I = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
adjust.c:554:24: warning: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 554 | int *J = gv_calloc(nedges, sizeof(int)); | ~~~~~~~~~ ^~~~~~ -
adjust.c:555:29: warning: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 555 | double *val = gv_calloc(nedges, sizeof(double)); | ~~~~~~~~~ ^~~~~~ -
neatoinit.c:773:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 773 | vtx_data *graph = gv_calloc(nv, sizeof(vtx_data)); | ~~~~~~~~~ ^~ -
neatoinit.c:774:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 774 | node_t** nodes = gv_calloc(nv, sizeof(node_t*)); | ~~~~~~~~~ ^~ -
neatoinit.c:817:33: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 817 | graph[i].eweights[idx] += ED_factor(ep); | ~~ ^~~~~~~~~~~~~ -
neatoinit.c:819:29: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 819 | graph[i].ewgts[idx] = fmax(graph[i].ewgts[idx], ED_dist(ep)); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
neatoinit.c:828:21: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 828 | *eweights++ = ED_factor(ep); | ~ ^~~~~~~~~~~~~ -
neatoinit.c:830:18: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 830 | *ewgts++ = ED_dist(ep); | ~ ^~~~~~~~~~~ -
neatoinit.c:862:57: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 862 | edges = gv_recalloc(graph[0].edges, edges_size, 2 * ne + nv, sizeof(int)); | ~~~~~~~~~~~ ~~~~~~~^~~~ -
adjust.c:642:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
adjust.c:644:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 644 | float *f_storage = gv_calloc(dim * nnodes, sizeof(float)); | ~~~~~~~~~ ~~~~^~~~~~~~ -
adjust.c:647:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 647 | coords[i] = f_storage + i * nnodes; | ~ ^~~~~~ 864 | ewgts = gv_recalloc(graph[0].ewgts, edges_size, 2 * ne + nv, sizeof(float)); | ~~~~~~~~~~~ ~~~~~~~^~~~ -
adjust.c:736:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 736 | if (p.x || p.y) ret = 1; | ~~^ ~~ -
adjust.c:736:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 736 | if (p.x || p.y) ret = 1; | ~~ ~~^ -
neatoinit.c:866:67: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 866 | eweights = gv_recalloc(graph[0].eweights, eadjust.cd:750g:e9s: _size, 2 * ne + nv, sizeof(float)); | ~~~~~~~~~~~ ~~~~~~~^~~~ -
adjust.c:881:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 881 | if (sc.y == 1 && sc.x == 1) return 0; | ~~~~ ^ ~ -
adjust.c:881:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 881 | if (sc.y == 1 && sc.x == 1) return 0; | ~~~~ ^ ~ -
adjust.c:931:21: warning: implicit conversion changes signedness: 'adjust_mode' to 'int' [-Wsign-conversion] 931 | cAdjust(G, am->mode); | ~~~~~~~ ~~~~^~~~ -
neatoinit.c:1099:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1099 | double **coords = gv_calloc(dim, sizeof(double *)); | ~~~~~~~~~ ^~~ -
neatoinit.c:1100:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1100 | coords[0] = gv_calloc(nv * dim, sizeof(double)); | ~~~~~~~~~ ~~~^~~~~ -
neatoinit.c:1129:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1129 | pointf *nsize = gv_calloc(nv, sizeof(pointf)); | ~~~~~~~~~ ^~ -
legal.c:115:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 115 | return a.x == b.x | ~~~ ^ ~~~ -
legal.c:116:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 116 | ? (a.x == c.x && -1 != between(a.y, c.y, b.y)) | ~~~ ^ ~~~ -
legal.c:136:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 136 | if (ls.x == le.x) { | ~~~~ ^ ~~~~ -
legal.c:139:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 139 | } else if (ms.x == me.x) { | ~~~~ ^ ~~~~ -
legal.c:174:36: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 174 | if ((ls.x - le.x) * (ms.y - ls.y) == (ls.y - le.y) * (ms.x - ls.x)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
legal.c:133:5: warning: 'switch' missing 'default' label [-Wswitch-default] 133 | switch (cond) { | ^ -
legal.c:199:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 199 | if ((vft.x != avft.x && vsd.x != avsd.x) || | ~~~~~ ^ ~~~~~~ -
legal.c:199:35: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 199 | if ((vft.x != avft.x && vsd.x != avsd.x) || | ~~~~~ ^ ~~~~~~ -
legal.c:200:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 200 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ~~~~~ ^ ~~~~~~ -
legal.c:200:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 200 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~~~~~~~~~ -
legal.c:200:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 200 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~~~~~~~~~~ -
legal.c:201:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 201 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ~~~~~ ^ ~~~~~~ -
legal.c:201:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 201 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~~~~~~~~~ -
legal.c:201:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 201 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~~~~~~~~~~ -
legal.c:363:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 363 | polygon *polygon_list = gv_calloc(n_polys, sizeof(polygon)); | ~~~~~~~~~ ^~~~~~~ -
lu.c:71:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 71 | lu->ps = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
lu.c:72:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 72 | double *const scales = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
poly.c:68:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 68 | if (verts[0].y == verts[1].y) | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:69:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 69 | return ((verts[2].y == verts[3].y) && | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:70:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 70 | (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:70:45: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 70 | (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:72:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 72 | return ((verts[0].x == verts[1].x) && | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:73:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 73 | (verts[2].x == verts[3].x) && | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:74:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 74 | (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:74:45: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 74 | (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); | ~~~~~~~~~~ ^ ~~~~~~~~~~ -
poly.c:311:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 311 | if (cross == 0 && !bHA && !aHB) { | ~~~~~ ^ ~ -
poly.c:353:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 353 | if (tp3[i].y == 0 && tp3[i1].y == 0) { | ~~~~~~~~ ^ ~ -
poly.c:353:33: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 353 | if (tp3[i].y == 0 && tp3[i1].y == 0) { | ~~~~~~~~~ ^ ~ -
poly.c:370:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 370 | if (x == 0) { | ~ ^ ~ -
poly.c:377:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 377 | if (tp3[i].y == 0 || tp3[i1].y == 0) { | ~~~~~~~~ ^ ~ -
poly.c:377:34: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 377 | if (tp3[i].y == 0 || tp3[i1].y == 0) { | ~~~~~~~~~ ^ ~ -
voronoi.c:41:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 41 | (newsite->coord.y ==newintstar.y && newsite->coord.x < newintstar.x))) { | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ -
neatosplines.c:272:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 272 | assert(p.x != a && | ~~~ ^ ~ -
neatosplines.c:603:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 603 | obs = gv_calloc(agnnodes(g), sizeof(Ppoly_t*)); | ~~~~~~~~~ ^~~~~~~~~~~ -
neatosplines.c:1033:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 1033 | if (GD_bb(g).LL.x || GD_bb(g).LL.y) { | ~~~~~~~~~~~~^ ~~ -
neatosplines.c:1033:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] 1033 | if (GD_bb(g).LL.x || GD_bb(g).LL.y) { | ~~ ~~~~~~~~~~~~^ -
stress.c:172:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 172 | float *Dij = gv_calloc(nG * (nG + 1) / 2, sizeof(float)); | ~~~~~~~~~ ~~~~~~~~~~~~~~^~~ -
stuff.c:43:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 43 | double **rv = gv_calloc(m, sizeof(double*)); | ~~~~~~~~~ ^ -
stress.c:258:48: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 258 | double *d_storage = gv_calloc(subspace_dim * n, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~~~~^~~ -
stress.c:313:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 313 | int *CenterIndex = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
stress.c:332:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 332 | DistType *dist =stuff.c :g67v:_32c:a llowarning: c(nimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion],
-
stuff.c:69:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 69 | rv[i] = gv_calloc(n + 1, ~~~~~~~~~ ^
-
stress.c:337:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 337 | invCenterIndex = gv_calloc(num_centers, sizeof(int)); | ~~~~~~~~~ ^~~~~~~~~~~ -
stress.c:339:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 339 | storage = gv_calloc(n * num_centers, sizeof(DistType)); | ~~~~~~~~~ ~~^~~~~~~~~~~~~ -
stress.c:340:21: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
stuff.c:71:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 71 | rv[i][j] = gv_calloc(p, sizeof(double)); | ~~~~~~~~~ ^ -
stress.c:395:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 395 | visited_nodes = gv_calloc(n, sizeof(istuff.cnt)); | ~~~~~~~~~ ^ -
stress.c:396:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 396 | distances = gv_calloc(n, sizeof(dist_data)); | ~~~~~~~~~ ^ -
stress.c:401:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 401 | distances[i].edges = gv_calloc(n -stuff.c:240:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 240 | GD_neato_nlist(G) = gv_calloc(nV + 1, sizeof(node_t*)); | ~~~~~~~~~ ~~~^~~ -
401 | distances[i].edges = gv_calloc(n -stuff.c:240:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 240 | GD_neato_nlist(G) = gv_calloc(nV + 1, sizeof(node_t*)); | ~~~~~~~~~ ~~~^~~ -
stuff.c:250:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 250 | GD_neato_nlist(G) = gv_calloc(nV + 1, sizeof(node_t *)); | ~~~~~~~~~ ~~~^~~ -
stress.c:402:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 402 | distances[i].edist = gv_calloc(n - 1, sizeof(DistType)); | ~~~~~~~~~ ~~^~~ -
stress.c:424:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 424 | storage1 = gv_calloc(available_space, sizeof(int)); | ~~~~~~~~~ ^~~~~~~~~~~~~~~ -
stress.c:425:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 425 | storage2 = gv_calloc(available_space, sizeof(DistType)); | ~~~~~~~~~ ^~~~~~~~~~~~~~~ -
stress.c:463:21: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 463 | lap = gv_calloc(n, sizeof(vtx_data)); | ~~~~~~~~~ ^ -
stress.c:464:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 464 | edges = gv_calloc(nedges + n, sizeof(int)); | ~ ^ -
stress.c:465:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 465 | ewgts = gv_calloc(nedges + n, sizeof(float)); | ~ ^ -
stress.c:497:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 497 | directions = gv_calloc(dim, sizeof(double *)); | ~~~~~~~~~ ^~~ -
stress.c:498:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 498 | directions[0] = gv_calloc(dim * subspace_dim, sizeof(double)); | ~~~~~~~~~ ~~~~^~~~~~~~~~~~~~ -
stress.c:534:31: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast] 534 | directions[k][i] = (double) rand() / RAND_MAX; | ^~~~~~ -
stress.c:563:19: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 563 | b = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
stress.c:564:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 564 | b_restricted = gv_calloc(subspace_dim, sizeof(double)); | ~~~~~~~~~ ^~~~~~~~~~~~ -
stress.c:584:23: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 584 | L_ij = -ewgts[j] * dist_list[j] / dist_ij; /* L_ij=w_{ij}*d_{ij}/dist_{ij} */ | ~ ^~~~~~~~~~~~ -
stuff.c:638:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 638 | Heap = gv_calloc(nG + 1, sizeof(node_t*)); | ~~~~~~~~~ ~~~^~~ -
kkutils.c:58:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 58 | DistType **dij = gv_calloc(n, sizeof(DistType*)); | ~~~~~~~~~ ^ -
kkutils.c:75:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 75 | DistType **dij =stress.c:648:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 648 | float *Dij = gv_calloc(n * (n + 1) / 2, sizeof(float )g)v; | ~~~~~~~~~ ~~~~~~~~~~~~^~~ -
75 | DistType **dij =stress.c:648:40: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 648 | float *Dij = gv_calloc(n * (n + 1) / 2, sizeof(float )g)v; | ~~~~~~~~~ ~~~~~~~~~~~~^~~ -
stress.c:650:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
kkutils.c:143:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 143 | gv_sort(ordering + first, last - first + 1, sizeof(ordering[0]), fcmpf, place); | ~~~~~~~ ~~~~~~~~~~~~~^~~ -
stress.c:701:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
stress.c:730:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 730 | int *vtx_vec = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
stress.c:916:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 916 | coords = gv_calloc(dim, sizeof(float *)); | ~~~~~~~~~ ^~~ -
stress.c:917:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 917 | f_storage = gv_calloc(dim * n, sizeof(float)); | ~~~~~~~~~ ~~~~^~~ -
stress.c:928:35: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 928 | constant_term = (float)n * (n - 1) / 2; | ~ ~~^~~ -
stress.c:944:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 944 | degrees = gv_calloc(n, sizeof(DegType)); | ~~~~~~~~~ ^ -
stress.c:956:16: warning: implicit conversion loses floating-point precision: 'long double' to 'float' [-Wimplicit-float-conversion] 956 | lap2[count] = degrees[i]; | ~ ^~~~~~~~~~ -
stress.c:963:19: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 963 | b = gv_calloc(dim, sizeof(float *)); | ~~~~~~~~~ ^~~ -
stress.c:964:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 964 | b[0] = gv_calloc(dim * n, sizeof(float)); | ~~~~~~~~~ ~~~~^~~ -
stress.c:969:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 969 | tmp_coords = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
stress.c:970:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 970 | dist_accumulator = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
stress.c:971:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 971 | lap1 = gv_calloc(lap_length, sizeof(float)); | ~~~~~~~~~ ^~~~~~~~~~ -
stress.c:986:21: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 986 | memset(degrees, 0, n * sizeof(DegType)); | ^ ~ -
stress.c:1031:20: warning: implicit conversion loses floating-point precision: 'long double' to 'float' [-Wimplicit-float-conversion] 1031 | lap1[count] = degrees[i]; | ~ ^~~~~~~~~~ -
matrix_ops.c:26:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 26 | double *tmp_vec = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
matrix_ops.c:27:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 27 | double *last_vec = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
matrix_ops.c:38:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 38 | double *const evals = gv_calloc(neigs, sizeof(evals[0])); | ~~~~~~~~~ ^~~~~ -
matrix_ops.c:136:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 136 | float *storage = gv_calloc(dim1 * dim3, sizeof(storage[0])); | ~~~~~~~~~ ~~~~~^~~~~~ -
matrix_ops.c:137:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 137 | float **const C = *CC = gv_calloc(dim1, sizeof(C[0])); | ~~~~~~~~~ ^~~~ -
matrix_ops.c:164:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 164 | double *storage = gv_calloc(dim1 * dim3, sizeof(double)); | ~~~~~~~~~ ~~~~~^~~~~~ -
matrix_ops.c:165:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 165 | double **C = *CC = gv_calloc(dim1, sizeof(double *)); | ~~~~~~~~~ ^~~~ -
matrix_ops.c:193:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 193 | float *storage = gv_calloc(dim1 * dim2, sizeof(A[0])); | ~~~~~~~~~ ~~~~~^~~~~~ -
matrix_ops.c:194:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 194 | float **C = *CC = gv_calloc(dim1, sizeof(A)); | ~~~~~~~~~ ^~~~ -
matrix_ops.c:394:12: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 394 | sum /= n; | ~~ ^ -
embed_graph.c:41:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 41 | DistType *storage = gv_calloc(n * dim, sizeof(DistType)); | ~~~~~~~~~ ~~^~~~~ -
embed_graph.c:42:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 42 | DistType *dist = gv_calloc(n, sizeof(DistType)); // this vector stores the | ~~~~~~~~~ ^ -
embed_graph.c:49:45: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 49 | DistType **coords = *Coords = gv_calloc(dim, sizeof(DistType *)); | ~~~~~~~~~ ^~~ -
dijkstra.c:106:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 106 | .index = gv_calloc(n, sizeof(int)) | ~~~~~~~~~ ^ -
dijkstra.c:104:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 104 | .data = gv_calloc(n - 1, sizeof(int)), | ~~~~~~~~~ ~~^~~ -
dijkstra.c:214:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 214 | .index = gv_calloc(n, sizeof(int)) | ~~~~~~~~~ ^ -
dijkstra.c:212:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 212 | .data = gv_calloc(n - 1, sizeof(int)), | ~~~~~~~~~ ~~^~~ -
dijkstra.c:283:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 283 | if (closestDist == FLT_MAX) | ~~~~~~~~~~~ ^ ~~~~~~~ -
dijkstra.c:315:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 315 | if (d == FLT_MAX) { | ~ ^ ~~~~~~~ -
dijkstra.c:320:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 320 | if (bitarray_get(graph->pinneds, closest) || closest<source) { | ~~~~~~~~~~~~ ^~~~~~~ -
conjgrad.c:32:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 32 | double *r = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:33:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 33 | double *p = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:34:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 34 | double *Ap = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:35:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 35 | double *Ax = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:36:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 36 | double *alphap = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:38:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 38 | double *orth_b = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:50:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 50 | if (p_Ap == 0) | ~~~~ ^ ~ -
conjgrad.c:64:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 64 | if (r_r == 0) { | ~~~ ^ ~ -
conjgrad.c:101:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 101 | double *r = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:102:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 102 | double *p = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:103:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 103 | double *Ap = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:104:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 104 | double *Ax = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:105:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 105 | double *alphap = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:107:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 107 | double *orth_b = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
conjgrad.c:121:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 121 | if (p_Ap == 0) | ~~~~ ^ ~ -
conjgrad.c:139:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 139 | if (r_r == 0) { | ~~~ ^ ~ -
conjgrad.c:172:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 172 | float *r = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
conjgrad.c:173:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 173 | float *p = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
conjgrad.c:174:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 174 | float *Ap = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
conjgrad.c:175:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 175 | float *Ax = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
conjgrad.c:201:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 201 | if (p_Ap == 0) | ~~~~ ^ ~ -
conjgrad.c:215:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 215 | if (r_r == 0) { | ~~~ ^ ~ -
pca.c:31:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 31 | double **eigs = gv_calloc(new_dim, sizeof(double *)); | ~~~~~~~~~ ^~~~~~~ -
pca.c:33:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 33 | eigs[i] = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
pca.c:35:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 35 | double **DD = gv_calloc(dim, sizeof(double *)); // dim×dim matrix: coords×coordsᵀ | ~~~~~~~~~ ^~~ -
pca.c:36:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 36 | double *storage_ptr = gv_calloc(dim * dim, sizeof(double)); | ~~~~~~~~~ ~~~~^~~~~ -
closest.c:85:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 85 | if (insideHeap(h, l) && greaterPriority(h, l, i)) | ^~~~~~~~~~~~~~~~~~~~~~~~ -
closest.c:89:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 89 | if (insideHeap(h, r) && greaterPriority(h, r, largest)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
closest.c:144:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 144 | while (i > 0 && greaterPriority(h, i, parent(i))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:241:18: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 241 | ED_minlen(e) = delta; | ~ ^~~~~ -
constraint.c:307:6: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 307 | alloc_elist(lcnt, ND_in(n)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:310:7: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 310 | alloc_elist(2 * (cnt - 1), ND_out(prev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:312:7: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 312 | alloc_elist(cnt - lcnt - 1, ND_out(prev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:491:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 491 | w2 = SCALE * (POINTS(ND_width(n)/2.0) + margin.x); | ~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:492:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 492 | h2 = SCALE * (POINTS(ND_height(n)/2.0) + margin.y); | ~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
constraint.c:542:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 542 | nitem *nlist = gv_calloc(nnodes, sizeof(nitem)); | ~~~~~~~~~ ^~~~~~ -
constraint.c:642:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 642 | if (p->pos.x == q->pos.x) | ~~~~~~~~ ^ ~~~~~~~~ -
constraint.c:647:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 647 | if (p->pos.y == q->pos.y) | ~~~~~~~~ ^ ~~~~~~~~ -
constraint.c:677:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 677 | if (p->pos.x == q->pos.x) | ~~~~~~~~ ^ ~~~~~~~~ -
constraint.c:684:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 684 | if (p->pos.y == q->pos.y) | ~~~~~~~~ ^ ~~~~~~~~ -
constraint.c:770:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 770 | info *nlist = gv_calloc(nnodes, sizeof(info)); | ~~~~~~~~~ ^~~~~~ -
constraint.c:809:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 809 | if (s.x == 0) { /* overlaps exist */ | ~~~ ^ ~ -
quad_prog_solve.c:31:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 31 | const float TOLERANCE = 1e-2; | ~~~~~~~~~ ^~~~ -
quad_prog_solve.c:39:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 39 | float **mat = gv_calloc(n, sizeof(float *)); | ~~~~~~~~~ ^ -
quad_prog_solve.c:40:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 40 | mat[0] = gv_calloc(n * n, sizeof(float)); | ~~~~~~~~~ ~~^~~ -
quad_prog_solve.c:140:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 140 | int *lev = gv_calloc(n, sizeof(int)); // level of each node | ~~~~~~~~~ ^ -
quad_prog_solve.c:230:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 230 | if (desired_place[node] == cur_place) { | ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ -
quad_prog_solve.c:392:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 392 | ordering[i] = LIST_GET(&block, i - (size_t)left); | ^ ~ -
quad_prog_solve.c:145:16: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] 145 | if (level == num_levels) { | ~~~~~ ^ ~~~~~~~~~~ -
quad_prog_solve.c:209:13: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare] 209 | if (level == num_levels) { | ~~~~~ ^ ~~~~~~~~~~ -
quad_prog_solve.c:435:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 435 | e->fArray1 = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
quad_prog_solve.c:436:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 436 | e->fArray2 = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
quad_prog_solve.c:437:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 437 | e->fArray3 = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
quad_prog_solve.c:438:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 438 | e->fArray4 = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
smart_ini_x.c:75:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 75 | double *tmp_vec = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
smart_ini_x.c:76:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 76 | double *last_vec = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
smart_ini_x.c:187:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 187 | float* row_avg = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
smart_ini_x.c:197:29: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 197 | row_avg[i]=(float)sum_row/n; | ~^ -
smart_ini_x.c:199:24: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 199 | *all_avg=(float)sum/(n*n); | ~ ~^~ -
smart_ini_x.c:207:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 207 | float *storage = gv_calloc(n * n, sizeof(float)); | ~~~~~~~~~ ~~^~~ -
smart_ini_x.c:208:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 208 | float **Bij = gv_calloc(n, sizeof(float *)); | ~~~~~~~~~ ^ -
smart_ini_x.c:218:32: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 218 | Bij[i][j]=-(float)Dij[i][j]*Dij[i][j]+row_avg[i]+row_avg[j]-all_avg; | ~^~~~~~~~~ -
smart_ini_x.c:232:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 232 | double *evals = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
smart_ini_x.c:235:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 235 | double *orthog_aux = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
smart_ini_x.c:262:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 262 | float **lap = gv_calloc(n, sizeof(float *)); | ~~~~~~~~~ ^ -
smart_ini_x.c:265:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 265 | double *balance = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
smart_ini_x.c:297:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 297 | float *f_storage = gv_calloc(n * n, sizeof(float)); | ~~~~~~~~~ ~~^~~ -
smart_ini_x.c:320:44: warning: cast from function call of type 'double' to non-matching type 'DistType' (aka 'int') [-Wbad-function-cast] 320 | Dij[i][j]=Dij[j][i]=diff>0 ? (DistType)sqrt(diff) : 0; | ^~~~~~~~~~ -
smart_ini_x.c:333:17: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 333 | balance[i]+=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^~~~~~~~~~ -
smart_ini_x.c:336:17: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 336 | balance[i]-=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^~~~~~~~~~ -
smart_ini_x.c:354:9: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 354 | b+=Dij[i][j]*(-lap[i][j]); | ^~~~~~~~~~ -
smart_ini_x.c:358:9: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 358 | b-=Dij[i][j]*(-lap[i][j]); | ^~~~~~~~~~ -
smart_ini_x.c:362:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 362 | if ((b != balance[i]) && (fabs(1-b/balance[i])>1e-5)) { | ~ ^ ~~~~~~~~~~ -
opt_arrangement.c:52:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 52 | double *b = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
constrained_majorization.c:246:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 246 | coords = gv_calloc(dim, sizeof(float *)); | ~~~~~~~~~ ^~~ -
constrained_majorization.c:247:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 247 | f_storage = gv_calloc(dim * n, sizeof(float)); | ~~~~~~~~~ ~~~~^~~ -
constrained_majorization.c:274:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 274 | degrees = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
constrained_majorization.c:294:19: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 294 | b = gv_calloc(dim, sizeof(float *)); | ~~~~~~~~~ ^~~ -
constrained_majorization.c:295:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 295 | b[0] = gv_calloc(dim * n, sizeof(float)); | ~~~~~~~~~ ~~~~^~~ -
constrained_majorization.c:300:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 300 | tmp_coords = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
constrained_majorization.c:301:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 301 | dist_accumulator = gv_calloc(n, sizeof(float)); | ~~~~~~~~~ ^ -
constrained_majorization.c:302:22: warning: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 302 | lap1 = gv_calloc(lap_length, sizeof(float)); | ~~~~~~~~~ ^~~~~~~~~~ -
constrained_majorization.c:401:14: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 398 | constrained_majorization_new_with_gaps(cMajEnv, b[k], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 399 | coords, k, 400 | localConstrMajorIterations, 401 | levels_gap); | ^~~~~~~~~~ -
overlap.c:119:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 119 | scan_point *scanpointsx = gv_calloc(2 * n, sizeof(scan_point)); | ~~~~~~~~~ ~~^~~ -
overlap.c:128:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 128 | qsort(scanpointsx, 2*n, sizeof(scan_point), comp_scan_points); | ~~~~~ ~^~ -
overlap.c:130:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 130 | scan_point *scanpointsy = gv_calloc(2 * n, sizeof(scan_point)); | ~~~~~~~~~ ~~^~~ -
overlap.c:293:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 293 | if (scale_sta == 0) { | ~~~~~~~~~ ^ ~ -
overlap.c:364:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 364 | sm->lambda = gv_calloc(m, sizeof(double)); | ~~~~~~~~~ ^ -
call_tri.c:25:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 25 | double* xv = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
call_tri.c:26:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 26 | double* yv = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
overlap.c:459:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 459 | double *xmin = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
overlap.c:460:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 460 | double *xmax = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
compute_hierarchy.c:65:16: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 65 | y = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
compute_hierarchy.c:73:39: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 73 | *orderingp = ordering = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
multispline.c:281:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 281 | if (w.x == v.x && w.y == v.y) { | ~~~ ^ ~~~ -
multispline.c:281:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 281 | if (w.x == v.x && w.y == v.y) { | ~~~ ^ ~~~ -
multispline.c:311:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 311 | pointf *ps = gv_calloc(mult, sizeof(pointf)); | ~~~~~~~~~ ^~~~ -
delaunay.c:144:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
multispline.c:443:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
-
delaunay.c:145:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 145 | Gmultispline.c:t484:s59E: dge **edwarning: gesimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] =
-
multispline.c:484:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 484 | g->edges = gv_recalloc(g->edges, g->nedges, g->nedges + 1, | ~~~~~~~~~~~ ~~~^~~~~~ -
multispline.c:524:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 524 | g.nnodes = sf->nfaces + 2; | ~ ~~~~~~~~~~~^~~ -
multispline.c:565:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 565 | int *obsi = gv_calloc(npoly + 1, sizeof(int)); | ~~~~~~~~~ ~~~~~~^~~ -
multispline.c:570:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 570 | pointf *pts = gv_calloc(npts, sizeof(pointf)); // all podelaunay.c:266:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]i
-
multispline.c:571:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 571 | idelaunay.cnt *segs =: 277:39: gv_warning: calimplicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]lo
-
multispline.c:604:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 604 | double *x = gv_calloc(npts, sizeof(double)); | ~~~~~~~~~ ^~~~ -
multispline.c:605:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 605 | double *y = gv_calloc(npts, sizeof(double)); | ~~~~~~~~~ ^~~~ -
delaunay.c:346:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 346 | edges = gv_calloc(2 * nedges, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~ -
delaunay.c:350:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 350 | int* vs = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
delaunay.c:353:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 353 | int *ip = edges = gv_calloc(2 * nedges, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~ -
delaunay.c:358:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 358 | gv_sort(vs, n, sizeof(int), vcmp, x[0] == x[1] /* vertical line? */ ? y : x); | ~~~~ ^ ~~~~ -
delaunay.c:358:14: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 358 | gv_sort(vs, n, sizeof(int), vcmp, x[0] == x[1] /* vertical line? */ ? y : x); | ~~~~~~~ ^ -
multispline.c:667:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 667 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~~~~~~~~~ -
multispline.c:667:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 667 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~~~~~~~~~ -
delaunay.c:469:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 469 | segs = gv_calloc(2 * nsegs, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~ -
delaunay.c:477:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 477 | int *faces = gv_calloc(3 * nfaces, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~ -
delaunay.c:478:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 478 | int *neigh = gv_calloc(3 * nfaces, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~ -
delaunay.c:514:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 514 | statf.faces = gv_calloc(3 * nfaces, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~ -
../../lib/neatogen/fPQ.h:39:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 39 | pq->pq = gv_calloc(sz + 1, sizeof(PQTYPE)); | ~~~~~~~~~ ~~~^~~ -
multispline.c:1109:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1109 | int *dad = gv_calloc(n, sizeof(int)); | ~~~~~~~~~ ^ -
multispline.c:1182:43: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1182 | PQTYPE *idxs = gv_calloc(pq.pq.PQsize + 1, sizeof(PQTYPE)); | ~~~~~~~~~ ~~~~~~~~~~~~~^~~ -
multispline.c:1183:44: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1183 | PQVTYPE *vals = gv_calloc(pq.pq.PQsize + 1, sizeof(PQVTYPE)); | ~~~~~~~~~ ~~~~~~~~~~~~~^~~ -
delaunay.c:600:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 600 | delaunay = gv_calloc(n, sizeof(v_data)); | ~~~~~~~~~ ^ -
delaunay.c:614:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 614 | delaunay = gv_calloc(n, sizeof(v_data)); | ~~~~~~~~~ ^ -
quad_prog_vpsc.c:79:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 79 | place[i] = getVariablePos(e->vs[i]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
quad_prog_vpsc.c:114:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 114 | if (denominator != 0) | ~~~~~~~~~~~ ^ ~ -
quad_prog_vpsc.c:128:14: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 128 | place[i] = getVariablePos(e->vs[i]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
quad_prog_vpsc.c:205:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 205 | e->nv = n - e->nldv; | ^ ~ -
quad_prog_vpsc.c:209:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 209 | e->vs = gv_calloc(n, sizeof(Variable*)); | ~~~~~~~~~ ^ -
quad_prog_vpsc.c:249:6: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 249 | get_num_digcola_constraints(levels, e->ndv + 1) + e->ndv - 1; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ -
quad_prog_vpsc.c:252:20: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 252 | e->vs = gv_calloc(n + e->ndv, sizeof(Variable*)); | ^ ~ -
quad_prog_vpsc.c:260:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 260 | cvar = n + i; | ^ ~ -
quad_prog_vpsc.c:265:13: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 265 | cvar = n + i; | ^ ~ -
quad_prog_vpsc.c:282:37: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 282 | newConstraint(e->vs[n + i], e->vs[n + i + 1], 0); | ^ ~ -
quad_prog_vpsc.c:282:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 282 | newConstraint(e->vs[n + i], e->vs[n + i + 1], 0); | ^ ~ -
quad_prog_vpsc.c:308:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 308 | e->vpsc = newIncVPSC(n + e->ndv, e->vs, e->gm, e->gcs); | ^ ~ -
constrained_majorization_ipsep.c:160:15: warning: implicit conversion from 'DistType' (aka 'int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 160 | ifquad_prog_vpsc.c (Dij[i] > diameter) { | ~ ^~~~~~~~ -
constrained_majorization_ipsep.c:205:20: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 205 | const size_t nn = n + opt->clusters.nclusters * 2; | ^ ~ -
constrained_majorization_ipsep.c:213:20: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 213 | if (i < n && j < n - i) { | ^ ~ -
:constrained_majorization_ipsep.c:238:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
constrained_majorization_ipsep.c:255:quad_prog_vpsc.c:317:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 317 | e->fArray2 = g24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
quad_prog_vpsc.c:224:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
-
constrained_majorization_ipsep.c:273:19: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 224 | e->gcs = newCons t273r | a i n t sb( e=- >ggvm_)c;al
-
im, quad_prog_vpsc.c:242:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
-
constrained_majorization_ipsep.c:279:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
quad_prog_vpsc.c:288:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 288 | e->gcs = n e279 | w C o n sttmrpa_icntso(oer-d>sg m= +g vn_CcoanlClso)c;(n
-
308 | e->vpsc = newInconstrained_majorization_ipsep.c:280:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
vpsc = newIncVPSC(n + e->ndv, e->vs, constrained_majorization_ipsep.c:293:22: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 293 | lap1 = gv_calloc(lap_length, sizeof(float)); | ~~~~~~~~~ ^~~~~~~~~~ -
constrained_majorization_ipsep.c:401:48: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 401 | generateNonoverlapConstraints(cMajEnvHor, nsizeScale, coords, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ -
constrained_majorization_ipsep.c:420:48: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 420 | generateNonoverlapConstraints(cMajEnvVrt, nsizeScale, coords, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ -
constrained_majorization_ipsep.c:212:24: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] 212 | for (int j = 0; j < nn - i; j++) { | ~ ^ ~~~~~~ -
constrained_majorization_ipsep.c:213:18: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] 213 | if (i < n && j < n - i) { | ~ ^ ~~~~~ -
constrained_majorization_ipsep.c:213:9: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] 213 | if (i < n && j < n - i) { | ~ ^ ~ -
quad_prog_vpsc.c:539:9: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 539 | e->m = mol; | ~ ^~~ -
quad_prog_vpsc.c:542:9: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 542 | e->m = mol + e->gm; | ^~~ ~ -
quad_prog_vpsc.c:543:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 543 | e->cs = newConstraints(e->m); | ~~~~~~~~~~~~~~ ~~~^ -
quad_prog_vpsc.c:556:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 556 | e->vpsc = newIncVPSC(e->nv + e->nldv + e->ndv, e->vs, e->m, e->cs); | ~~~~~~~~~~ ~~~^ -
quad_prog_vpsc.c:556:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 556 | e->vpsc = newIncVPSC(e->nv + e->nldv + e->ndv, e->vs, e->m, e->cs); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~~ -
quad_prog_vpsc.c:571:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 571 | coords[0][i] = getVariablePos(e->vs[i]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
quad_prog_vpsc.c:576:17: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 576 | coords[1][i] = getVariablePos(e->vs[i]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
quad_prog_vpsc.c:591:33: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 591 | l[0].nodes = gv_calloc(l[0].num_nodes, sizeof(int)); | ~~~~~~~~~ ~~~~~^~~~~~~~~ -
sgd.c:32:25: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 32 | int j = rk_interval(i, rstate); | ~~~~~~~~~~~ ^ -
quad_prog_vpsc.c:598:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
sgd.c:32:13: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 598 | l[i].nodes = gv_calloc(l[i].nu32m_n | o d e s ,int j = rk_interval(i, rstate )s;iz -
quad_prog_vpsc.c:605:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 605 | l[num_divisions].num_nodes = n - level_inds[num_divisions - 1]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
quad_prog_vpsc.c:606:54: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 606 | l[num_divisions].nodes = gv_calloc(l[num_divisions].num_nodes, sizeof(int)); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~ -
quad_prog_vpsc.c:605:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 605 | l[num_divisions].num_nodes = n - level_inds[num_divisions - 1]; | ~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
sgd.c:73:33: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 73 | graph->weights[n_edges] = ED_dist(ep); | ~ ^~~~~~~~~~~ -
sgd.c:114:43: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 114 | graph->weights[x] = deg_i + deg_j - (2 * intersect); | ~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
sgd.c:42:22: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] 42 | assert(ND_id(np) == n_nodes); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -
sgd.c:168:31: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 168 | term_sgd *terms = gv_calloc(n_terms, sizeof(term_sgd)); | ~~~~~~~~~ ^~~~~~~ -
sgd.c:200:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 200 | double *const pos = gv_calloc(2 * n, sizeof(double)); | ~~~~~~~~~ ~~^~~ -
sgd.c:201:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 201 | bool *unfixed = gv_calloc(n, sizeof(bool)); | ~~~~~~~~~ ^ -
randomkit.c:85:56: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 85 | seed = (1812433253UL * (seed ^ (seed >> 30)) + pos + 1) & 0xffffffffUL; | ~ ^~~ -
sparse_solve.c:45:13: warning: implicit conversion from 'const size_t' (aka 'const unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 45 | diag[0] = m; | ~ ^ -
spring_electrical.c:210:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 210 | if (!bitarray_get(checked, p)) { | ~~~~~~~~~~~~ ^ -
spring_electrical.c:211:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 211 | bitarray_set(&checked, p, true); | ~~~~~~~~~~~~ ^ -
spring_electrical.c:216:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 216 | bitarray_set(&checked, ja[j], true); | ~~~~~~~~~~~~ ^~~~~ -
spring_electrical.c:222:23: warning: cast from function call of type 'size_t' (aka 'unsigned long') to non-matching type 'double' [-Wbad-function-cast] 222 | dist /= (double)LIST_SIZE(&leaves); | ^~~~~~~~~~~~~~~~~~ -
spring_electrical.c:231:66: warning: cast from function call of type 'size_t' (aka 'unsigned long') to non-matching type 'double' [-Wbad-function-cast] 231 | if (LIST_SIZE(&leaves) > 1) step = (ang2 - ang1) / (double)LIST_SIZE(&leaves); | ^~~~~~~~~~~~~~~~~~ -
spring_electrical.c:283:17: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 283 | srand(ctrl->random_seed); | ~~~~~ ~~~~~~^~~~~~~~~~~ -
spring_electrical.c:293:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 293 | force = gv_calloc(dim * n, sizeof(double)); | ~~~~~~~~~ ~~~~^~~ -
sfdpinit.c:56:26: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 56 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
sfdpinit.c:58:30: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 58 | GD_odim(agroot(g)) = MIN(outdim, Ndim); | ~ ^~~~~~ -
28 | #defpost_process.c:400:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 400 | if (s == 0) {spring_electrical.c: -
spring_electrical.c:434:17: warning: post_process.c:529:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 529 | irn = data->irn = gv_calloc(nz, sizeof(int)); | ~~~~~~~~~ ^~ -
post_process.c:530:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 530 | jcn = data->jcn = gv_calloc(nz, sizeof(int)); | ~~~~~~~~~ ^~ -
post_process.c:531:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 531 | val = data->val = gv_calloc(nz, sizeof(double)); | ~~~~~~~~~ ^~ -
post_process.c:533:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 533 | x00 = gv_calloc(m * dim, sizeof(double)); | ~ ^~~ -
sfdpinit.c:67:34: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
| double *pos = gv_calloc(Ndim * ag nnodes(g), s434 | srandpost_process.c:592:15: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
spring_electrical.c:444:17: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 444 | f = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
post_process.c:596:34: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 596 | memcpy(x0, x, sizeof(double) * dim * m); | ~ ^~~ -
post_process.c:597:14: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
-
sfdpinit.c:209:25: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 209 | ctrl->random_seed = seed; | ~ ^~~~ 597 | y = calloc(dim * m, sizeof(double)); | ^~~ ~ -
post_process.c:636:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 636 | if (d[j] == 0) { | ~~~~ ^ ~ -
post_process.c:639:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 639 | if (dist == 0) { | ~~~~ ^ ~ -
spring_electrical.c:569:17: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 569 | srand(ctrl->random_seed); | ~~~~~ ~~~~~~^~~~~~~~~~~ -
post_process.c:703:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 703 | memcpy(x, y, sizspring_electrical.c:e579o:f(double) * m * dim); | ~ ^~~ -
spring_electrical.c:730:17: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] 730 | srand(ctrl->random_seed); | ~~~~~ ~~~~~~^~~~~~~~~~~ -
spring_electrical.c:740:17: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 740 | f = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
spring_electrical.c:741:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 741 | xold = gv_calloc(dim * n, sizeof(double)); | ~~~~~~~~~ ~~~~^~~ -
spring_electrical.c:744:40: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 744 | memcpy(xold, x, sizeof(double)*dim*n); | ~^ -
spring_electrical.c:744:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 744 | memcpy(xold, x, sizeof(double)*dim*n); | ~^~~ -
spring_electrical.c:829:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 829 | double *y = gv_calloc(dim, sizeof(double)); | ~~~~~~~~~ ^~~ -
spring_electrical.c:915:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 915 | if (y[1] == 0) { | ~~~~ ^ ~ -
post_process.c:967:3: warning: 'switch' missing 'default' label [-Wswitch-default] 967 | switch (ctrl.smoothing) { | ^ -
spring_electrical.c:1053:73: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1053 | SparseMatrix B = SparseMatrix_from_coordinate_arrays(LIST_SIZE(&irn), id, id, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ -
spring_electrical.c:1102:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1102 | double *x2 = gv_calloc(A->m * dim, sizeof(double)); | ~ ^~~ -
spring_electrical.c:1124:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1124 | xc = gv_calloc(grid->n * dim, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~^~~~~ -
spring_electrical.c:1128:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1128 | if (ctrl->p == AUTOP){ | ~~~~~~~ ^ ~~~~~ -
spring_electrical.c:1164:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1164 | xf = gv_calloc(grid->n * dim, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~^~~~~ -
spring_electrical.c:1189:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1189 | if (ctrl->rotation != 0) rotate(n, dim, x, ctrl->rotation); | ~~~~~~~~~~~~~~ ^ ~ -
gvpr.c:85:15: warning: implicit conversion from 'clock_t' (aka 'unsigned long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 85 | return (end - start) / (double)CLOCKS_PER_SEC; | ~~~~^~~~~~~ ~ -
compile.c:1401:19: warning: implicit conversion changes signedness: 'unsigned long' to 'long long' [-Wsign-conversion] 1401 | v.integer = strlen(args[0].string); | ~ ^~~~~~~~~~~~~~~~~~~~~~ -
compile.c:1460:5: warning: 'switch' missing 'default' label [-Wswitch-default] 1460 | switch (sym->index) { | ^ -
compile.c:1704:7: warning: 'switch' missing 'default' label [-Wswitch-default] 1704 | switch (sym->index) { | ^ -
compile.c:1859:5: warning: 'switch' missing 'default' label [-Wswitch-default] 1859 | switch (ex->op) { | ^ -
compile.c:2096:7: warning: 'switch' missing 'default' label [-Wswitch-default] 2096 | switch (type) { | ^ -
compile.c:2153:17: warning: implicit conversion changes signedness: 'IDTYPE' (aka 'unsigned long long') to 'long long' [-Wsign-conversion] 2153 | v.integer = AGID(int2ptr(v.integer)); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ -
gvrender_core_dot.c:419:58: warning: implicit conversion changes signedness: 'int' to 'format_type' [-Wsign-conversion] 419 | xdot_begin_graph(g, s_arrows, e_arrows, job->render.id, yOff); | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~ -
gvrender_quartz.c:39:2: warning: 'switch' missing 'default' label [-Wswitch-default] 39 | switch (job->device.id) { | ^ -
gvrender_quartz.c:281:6: warning: implicit conversion changes signedness: 'unsigned long' to 'CFIndex' (aka 'long') [-Wsign-conversion] 280 | CFURLRef uri = CFURLCreateWithBytes(NULL, (const UInt8 *)url, | ~~~~~~~~~~~~~~~~~~~~ 281 | strlen(url), kCFStringEncodingUTF8, NULL); | ^~~~~~~~~~~ -
gxl2gv.c:140:21: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] 140 | namev_t *objp = dtmatch(nm, name); | ^ -
gxl2gv.c:190:28: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 190 | N = agnode(G, (char *) name, 1); | ^ -
gxl2gv.c:199:35: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 199 | tailNode = agnode(G, (char *) tail, 1); | ^ -
gxl2gv.c:200:35: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 200 | headNode = agnode(G, (char *) head, 1); | ^ -
gxl2gv.c:393:23: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 393 | g = agopen((char *) id, Agdirected, &AgDefaultDisc); | ^ -
gxl2gv.c:395:23: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 395 | g = agopen((char *) id, Agundirected, &AgDefaultDisc); | ^ -
gxl2gv.c:400:23: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 400 | g = agopen((char *) id, Agdirected, &AgDefaultDisc); | ^ -
gxl2gv.c:410:32: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 410 | subg = agsubg(G, (char *) id, 1); | ^ -
gxl2gv.c:416:41: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 416 | setGraphAttr(G, GXL_ROLE, (char *) atts[pos], ud); | ^ -
gxl2gv.c:421:42: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 421 | setGraphAttr(G, GXL_HYPER, (char *) atts[pos], ud); | ^ -
gxl2gv.c:514:33: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 514 | setAttr(GXL_TYPE, (char *) atts[pos], ud, false); | ^ -
graphml2gv.c:159:28: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 159 | return agnode(G, (char *)name, 1); | ^ -
graphml2gv.c:167:35: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 167 | tailNode = agnode(G, (char *) tail, 1); | ^ -
graphml2gv.c:168:35: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 168 | headNode = agnode(G, (char *) head, 1); | ^ -
graphml2gv.c:250:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 250 | g = agopen((char *) id, dir, &AgDefaultDisc); | ^ -
graphml2gv.c:259:32: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] 259 | subg = agsubg(G, (char *) id, 1); | ^ -
gmlscan.c:1433:8: warning: 'switch' missing 'default' label [-Wswitch-default] 1433 | else switch ( yy_get_next_buffer( ) ) | ^ -
gmlscan.c:1594:18: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 1593 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1594 | (yy_n_chars), num_to_read ); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ -
gmlscan.c:1593:3: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 1593 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1594 | (yy_n_chars), num_to_read ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
power.c:55:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 55 | double *eigv = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
power.c:57:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 57 | vv = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
power.c:58:17: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 58 | u = gv_calloc(n, sizeof(double)); | ~~~~~~~~~ ^ -
gvmap.c:172:46: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 172 | if (sscanf(optarg, "%lf", &s) > 0 && s != 0) { | ~ ^ ~ -
make_map.c:171:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 171 | if (v[0] == 0){ | ~~~~ ^ ~ -
make_map.c:206:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 206 | if (bot == 0){/* xy and yz are parallel */ | ~~~ ^ ~ -
make_map.c:362:18: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 362 | *T = gv_calloc(ntri, sizeof(struct Triangle)); | ~~~~~~~~~ ^~~~ -
make_map.c:471:25: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 471 | int *mask = gv_calloc(nt, sizeof(int)); | ~~~~~~~~~ ^~ -
make_map.c:474:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 474 | elist = gv_calloc(nt * edim, sizeof(int)); | ~~~~~~~~~ ~~~^~~~~~ -
make_map.c:475:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 475 | tlist = gv_calloc(nt * 2, sizeof(int)); | ~~~~~~~~~ ~~~^~~ -
make_map.c:642:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 642 | cycle = gv_calloc(ne * 2, sizeof(int)); | ~~~~~~~~~ ~~~^~~ -
make_map.c:646:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 646 | edge_cycle_map = gv_calloc(ne, sizeof(int)); | ~~~~~~~~~ ^~ -
make_map.c:647:21: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 647 | emask = gv_calloc(ne, sizeof(int)); | ~~~~~~~~~ ^~ -
make_map.c:654:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 654 | elist = gv_calloc(nt * 3, sizeof(int)); | ~~~~~~~~~ ~~~^~~ -
make_map.c:844:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 844 | groups = gv_calloc(n + nrandom, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~~ -
make_map.c:876:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 876 | *x_poly = gv_calloc(dim * nt, sizeof(double)); | ~~~~~~~~~ ~~~~^~~~ -
make_map.c:969:29: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 969 | y = gv_calloc(dim * n + dim * nz * np, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~ -
make_map.c:971:30: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 971 | grouping = gv_calloc(n + nz * np, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~~ -
make_map.c:1030:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 1030 | nrandom = fmax(n1, n2); | ~ ^~~~~~~~~~~~ -
make_map.c:1033:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1033 | xran = gv_calloc((nrandom + 4) * dim2, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1038:38: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1038 | int *grouping2 = gv_calloc(n + nrandom, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~~~~ -
make_map.c:1039:49: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] 1039 | memcpy(grouping2, grouping, sizeof(int)*n); | ~^ -
make_map.c:1042:47: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1042 | grouping = gv_recalloc(grouping, n, n + nrandom, sizeof(int)); | ~~~~~~~~~~~ ~~^~~~~~~~~ -
make_map.c:1042:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1042 | grouping = gv_recalloc(grouping, n, n + nrandom, sizeof(int)); | ~~~~~~~~~~~ ^ -
make_map.c:1073:24: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1073 | xran = gv_calloc(4 * dim2, sizeof(double)); | ~~~~~~~~~ ~~^~~~~~ -
make_map.c:1094:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1094 | xcombined = gv_calloc((nn + nrandom) * dim2, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1096:41: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1096 | xcombined = gv_calloc((n + nrandom) * dim2, sizeof(double)); | ~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1171:42: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1171 | *x = gv_recalloc(*x, 2 * old_nmax, 2 * *nmax, sizeof(double)); | ~~~~~~~~~~~ ~~^~~~~~~ -
make_map.c:1171:28: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1171 | *x = gv_recalloc(*x, 2 * old_nmax, 2 * *nmax, sizeof(double)); | ~~~~~~~~~~~ ~~^~~~~~~~~~ -
make_map.c:1172:46: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1172 | *groups = gv_recalloc(*groups, old_nmax, *nmax, sizeof(int)); | ~~~~~~~~~~~ ^~~~~ -
make_map.c:1172:36: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1172 | *groups = gv_recalloc(*groups, old_nmax, *nmax, sizeof(int)); | ~~~~~~~~~~~ ^~~~~~~~ -
make_map.c:1300:23: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1300 | X = gv_calloc(dim * (n + nmax), sizeof(double)); | ~~~~~~~~~ ~~~~^~~~~~~~~~~~ -
make_map.c:1301:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] 1301 | groups = gv_calloc(n + nmax, sizeof(int)); | ~~~~~~~~~ ~~^~~~~~ -
make_map.c:1312:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 1312 | } else if (shore_depth_tol == 0){ | ~~~~~~~~~~~~~~~ ^ ~