Snippets for graphviz 15.1.1 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/3szwcf61qg7bhm17xfikjk855sw46bg6-graphviz-15.1.1.drv.
-
dthash.c:30:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 30 | if (!(s = realloc(olds, n * sizeof(Dtlink_t*)))) | ^ -
../../lib/cdt/dthdr.h:25:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ -
xdot.c:889:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 889 | stops = gv_calloc(clr->u.ring.n_stops, sizeof(stops[0])); | ~~~~~~~~~~~^~~~~~~~ -
xdot.c:924:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 924 | stops = gv_calloc(clr->u.ling.n_stops, sizeof(stops[0])); | ~~~~~~~~~~~^~~~~~~~ -
scan.c:1418:8: warning: switch missing default case [-Wswitch-default] 1418 | | ^ -
route.c:326:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 326 | if (xcoeff[1] == 0) { | ^~ -
route.c:327:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 327 | if (ycoeff[1] == 0) { | ^~ -
route.c:346:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 346 | if (xroots[i] == yroots[j]) | ^~ -
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:36: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 130 | && polyp->ps[pi].x == polyp->ps[pi + 1].x | ^~ -
shortest.c:131:36: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 131 | && polyp->ps[pi].y == polyp->ps[pi + 1].y) | ^~ -
shortest.c:140:43: 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:33: 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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 37 | int *dad = gv_calloc(V, sizeof(int)); | ^ -
shortestpth.c:38:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 38 | COORD *vl = gv_calloc(V + 1, sizeof(COORD)); // One extra for sentinel | ~~^~~ -
shortestpth.c:54:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 54 | if (val[k] == unseen) | ^~ -
shortestpth.c:69:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 69 | if ((wkt != 0) && (val[t] < newpri)) { | ^~ -
shortestpth.c:99:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 99 | int *dad = gv_calloc(V + 2, sizeof(int)); | ~~^~~ -
visibility.c:31:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 258 | COORD *vadj = gv_calloc(V + 2, sizeof(COORD)); | ~~^~~ -
sfcvt.c:46:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 46 | if (dval == 0.) | ^~ -
../../lib/sfio/sfhdr.h:126:25: warning: conversion from 'long double' to 'double' may change value [-Wfloat-conversion] 126 | #define _Sfneg10 (_Sftable.sf_neg10) | ^ -
sfcvt.c:71:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 71 | memmove(Buf + SF_INTPART - n, Buf, n); | ^ -
sfcvt.c:107:26: warning: conversion from 'long int' to 'double' may change value [-Wconversion] 107 | dval -= n; | ^~ -
../../lib/sfio/sfhdr.h:87:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 87 | ((ft->form = (char*)frm), \ | ^ -
sfprint.c:345:26: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 345 | if ((v = size) >= 0) { | ^~~~ -
sfprint.c:349:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 349 | v = strlen(sp); | ^~~~~~ -
sfprint.c:381:26: warning: conversion from 'int' to 'char' may change value [-Wconversion] 381 | buf[0] = fmt; | ^~~ -
sfprint.c:484:36: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 484 | } while ((lv = (unsigned long long)lv >> n)); | ^ -
sfprint.c:488:36: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 488 | } while ((lv = (unsigned long long)lv / (unsigned long long)base)); | ^ -
sfprint.c:538:35: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 538 | } while ((v = (unsigned)v >> n)); | ^ -
sfprint.c:542:35: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 542 | } while ((v = (unsigned)v / (unsigned)base)); | ^ -
sfprint.c:547:25: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 547 | && (n = endsp - sp) > 3) { | ^~~~~ -
sfprint.c:564:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 564 | if (precis > 0 && (precis -= (endsp - sp)) < (sp - buf) - 64) | ^ -
sfprint.c:581:29: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 581 | n = width - (n + (endsp - sp)); | ^~~~~ -
sfprint.c:633:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 633 | if (dval == 0.) | ^~ -
sfprint.c:640:26: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 640 | if ((n = sfslen()) > precis) | ^~~~~~ -
sfprint.c:667:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 667 | precis -= (endsp -= 1) - ssp; | ^ -
sfprint.c:671:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 671 | if (dval != 0.) { | ^~ -
sfprint.c:686:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 686 | *--ep = (decpt > 0 || dval == 0.) ? '+' : '-'; | ^~ -
sfprint.c:731:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 731 | precis -= (endsp -= 1) - ssp; | ^ -
sfprint.c:748:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 748 | n = (endsp - sp) + (endep - ep) + (precis <= 0 ? 0 : precis) + | ^ -
sfprint.c:756:25: warning: conversion from 'int' to 'char' may change value [-Wconversion] 756 | *--sp = fmt; | ^~~ -
sfprint.c:778:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 778 | if ((n = endsp - sp) > 0) | ^~~~~ -
sfprint.c:786:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 786 | if ((n = endep - (sp = ep)) > 0) | ^~~~~ -
sfvscanf.c:359:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 359 | *val++ = inp; | ^~~ -
sfvscanf.c:368:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 368 | *val++ = inp; | ^~~ -
sfvscanf.c:372:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 372 | *val++ = inp; | ^~~ -
sfvscanf.c:376:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 376 | *val++ = inp; | ^~~ -
sfvscanf.c:450:57: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 450 | (argv.lu << 3) + (argv.lu << 1) + (inp - '0'); | ^ -
sfvscanf.c:486:44: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 486 | argv.lu = (argv.lu * base) + sp[inp]; | ^ -
sfvscanf.c:538:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 538 | *argv.s++ = inp; | ^~~ -
sfvscanf.c:543:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 543 | *argv.s++ = inp; | ^~~ -
sfvscanf.c:558:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 558 | *argv.s++ = inp; | ^~~ -
chresc.c:138:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 138 | *p = (char *) s; | ^ -
stresc.c:41:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] 41 | *t++ = c; | ^ -
fPQ.c:28:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 28 | pq->pq = gv_calloc(sz + 1, sizeof(snode *)); | ~~~^~~ -
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:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 713 | if (next.comm_coord == current.p.p1) { | ^~ -
ortho.c:721:33: 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 | return s1.p.p1 == s2.p.p1 && | ^~ -
ortho.c:736:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 736 | s1.p.p2 == s2.p.p2 && | ^~ -
ortho.c:800:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 800 | if(prev1->comm_coord==seg1->p.p1) { | ^~ -
ortho.c:843:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 843 | if(prev1->comm_coord==seg1->p.p1) { | ^~ -
ortho.c:945:65: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 945 | if (LIST_GET(segs, i)->prev->comm_coord == | ^~ -
ortho.c:1055:38: warning: cast from function call of type 'size_t' {aka 'long unsigned int'} to non-matching type 'double' [-Wbad-function-cast] 1055 | OPTIONAL_VALUE(seg->track_no) / ((double)LIST_SIZE(&chp->seg_list) + 1); | ^ -
ortho.c:1063:6: warning: cast from function call of type 'size_t' {aka 'long unsigned int'} to non-matching type 'double' [-Wbad-function-cast] 1063 | ((double)LIST_SIZE(&chp->seg_list) + 1); | ^ -
ortho.c:1160:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1160 | epair_t* es = gv_calloc(agnedges(g), sizeof(epair_t)); | ^~~~~~~~~~~ -
partition.c:634:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 634 | vert = gv_calloc(nsegs + 1, sizeof(vertexchain_t)); | ~~~~~~^~~ -
partition.c:635:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 635 | mon = gv_calloc(nsegs, sizeof(int)); | ^~~~~ -
sgraph.c:42:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 42 | int* adj = gv_calloc(6 * g->nnodes + 2 * maxdeg, sizeof(int)); | ^ -
sgraph.c:43:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 43 | g->edges = gv_calloc(3 * g->nnodes + maxdeg, sizeof(sedge)); | ^ -
sgraph.c:165:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 165 | d = -(N_VAL(n) + E_WT(e)); | ^ -
trapezoid.c:858:10: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 858 | return (int)ceil(n / v); | ^ -
general.c:108:12: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 108 | qsort(v, n, sizeof(int), comp_ascend_int); | ^ -
DotIO.c:217:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 217 | *xsplines = gv_calloc(nedges, sizeof(char *)); | ^~~~~~ -
DotIO.c:339:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 339 | int *I = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
DotIO.c:340:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 340 | int *J = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
DotIO.c:341:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 341 | double *val = gv_calloc(nedges, sizeof(double)); | ^~~~~~ -
DotIO.c:365:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 365 | *clusters = gv_calloc(nnodes, sizeof(int)); | ^~~~~~ -
DotIO.c:375:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 375 | memset(*clusters, 0, sizeof(int) * nnodes); | ^ -
DotIO.c:445:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 445 | *label_sizes = gv_calloc(dim * nnodes, sizeof(double)); | ~~~~^~~~~~~~ -
DotIO.c:447:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 447 | *rgb_r = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~^~~~~~~~~~ -
DotIO.c:448:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 448 | *rgb_g = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~^~~~~~~~~~ -
DotIO.c:449:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 449 | *rgb_b = gv_calloc(1 + MAX_GRPS, sizeof(float)); | ~~^~~~~~~~~~ -
DotIO.c:502:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 502 | *x = gv_calloc(dim * nnodes, sizeof(double)); | ~~~~^~~~~~~~ -
DotIO.c:553:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 553 | int *I = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
DotIO.c:554:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 554 | int *J = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
DotIO.c:555:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 555 | double *val = gv_calloc(nedges, sizeof(double)); | ^~~~~~ -
DotIO.c:578:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 578 | int *clusters = gv_calloc(nnodes, sizeof(int)); | ^~~~~~ -
mq.c:176:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 176 | matching = grid->matching = gv_calloc(n, sizeof(double)); | ^ -
mq.c:186:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 186 | grid->deg_intra = gv_calloc(n, sizeof(double)); | ^ -
mq.c:189:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 189 | grid->wgt = gv_calloc(n, sizeof(double)); | ^ -
mq.c:242:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 242 | LIST(int) *neighbors = gv_calloc(n, sizeof(neighbors[0])); | ^ -
mq.c:248:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 248 | double *deg_intra_new = gv_calloc(n, sizeof(double)); | ^ -
mq.c:249:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 249 | double *wgt_new = gv_calloc(n, sizeof(double)); | ^ -
mq.c:250:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 250 | double *deg_inter = gv_calloc(n, sizeof(double)); | ^ -
mq.c:251:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 251 | int *mask = gv_calloc(n, sizeof(int)); | ^ -
mq.c:252:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 252 | double *dout_new = gv_calloc(n, sizeof(double)); | ^ -
mq.c:482:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 482 | deg_intra_new = gv_recalloc(deg_intra_new, n, nc, sizeof(double)); | ^ -
mq.c:482:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 482 | deg_intra_new = gv_recalloc(deg_intra_new, n, nc, sizeof(double)); | ^~ -
mq.c:483:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 483 | wgt_new = gv_recalloc(wgt_new, n, nc, sizeof(double)); | ^ -
mq.c:483:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 483 | wgt_new = gv_recalloc(wgt_new, n, nc, sizeof(double)); | ^~ -
mq.c:487:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 487 | dout_new = gv_recalloc(dout_new, n, nc, sizeof(double)); | ^ -
mq.c:487:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 487 | dout_new = gv_recalloc(dout_new, n, nc, sizeof(double)); | ^~ -
mq.c:557:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 557 | double *u = gv_calloc(cgrid->n, sizeof(double)); | ~~~~~^~~ -
mq.c:574:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 574 | matching = gv_calloc(grid->n, sizeof(int)); | ~~~~^~~ -
clustering.c:37:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 37 | grid->matching = gv_calloc(n, sizeof(double)); | ^ -
clustering.c:48:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 48 | grid->deg = gv_calloc(n, sizeof(double)); | ^ -
clustering.c:51:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 51 | double *indeg = gv_calloc(n, sizeof(double)); | ^ -
clustering.c:106:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 106 | double *deg_new = gv_calloc(n, sizeof(double)); | ^ -
clustering.c:107:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 107 | double *deg_inter = gv_calloc(n, sizeof(double)); | ^ -
clustering.c:108:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 108 | int *mask = gv_calloc(n, sizeof(int)); | ^ -
clustering.c:315:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 315 | double *u = gv_calloc(cgrid->n, sizeof(double)); | ~~~~~^~~ -
clustering.c:332:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 332 | matching = gv_calloc(grid->n, sizeof(int)); | ~~~~^~~ -
QuadTree.c:28:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 28 | nd->coord = gv_calloc(dim, sizeof(double)); | ^~~ -
QuadTree.c:45:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 45 | *center = gv_recalloc(*center, dim * *nsupermax, dim * new_nsupermax, sizeof(double)); | ~~~~^~~~~~~~~~~~ -
QuadTree.c:45:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 45 | *center = gv_recalloc(*center, dim * *nsupermax, dim * new_nsupermax, sizeof(double)); | ~~~~^~~~~~~~~~~~~~~ -
QuadTree.c:46:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 46 | *supernode_wgts = gv_recalloc(*supernode_wgts, *nsupermax, new_nsupermax, sizeof(double)); | ^~~~~~~~~~ -
QuadTree.c:46:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 46 | *supernode_wgts = gv_recalloc(*supernode_wgts, *nsupermax, new_nsupermax, sizeof(double)); | ^~~~~~~~~~~~~ -
QuadTree.c:47:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 47 | *distances = gv_recalloc(*distances, *nsupermax, new_nsupermax, sizeof(double)); | ^~~~~~~~~~ -
QuadTree.c:47:54: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 47 | *distances = gv_recalloc(*distances, *nsupermax, new_nsupermax, sizeof(double)); | ^~~~~~~~~~~~~ -
QuadTree.c:104:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 104 | if (!*center) *center = gv_calloc(nsupermax * dim, sizeof(double)); | ~~~~~~~~~~^~~~~ -
QuadTree.c:105:53: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 105 | if (!*supernode_wgts) *supernode_wgts = gv_calloc(nsupermax, sizeof(double)); | ^~~~~~~~~ -
QuadTree.c:106:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 106 | if (!*distances) *distances = gv_calloc(nsupermax, sizeof(double)); | ^~~~~~~~~ -
QuadTree.c:125:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 190 | if (p == -1){ | ^~ -
QuadTree.c:319:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 319 | xmin = gv_calloc(dim, sizeof(double)); | ^~~ -
QuadTree.c:320:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 320 | xmax = gv_calloc(dim, sizeof(double)); | ^~~ -
QuadTree.c:321:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 321 | center = gv_calloc(dim, sizeof(double)); | ^~~ -
QuadTree.c:364:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 364 | q->center = gv_calloc(dim, sizeof(double)); | ^~~ -
QuadTree.c:459:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 459 | q->average = gv_calloc(dim, sizeof(double)); | ^~~ -
excontext.c:44:51: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 44 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ -
excontext.c:44:75: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 44 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ -
excontext.c:44:34: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 44 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ -
excontext.c:58:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 58 | if ((n = (p->linep - t) - (e - s)) > 0) | ^ -
excc.c:200:9: warning: switch missing default case [-Wswitch-default] 200 | switch (exnode->op) | ^~~~~~ -
excc.c:533:17: warning: switch missing default case [-Wswitch-default] 533 | switch (exnode->op) | ^~~~~~ -
exeval.c:281:9: warning: switch missing default case [-Wswitch-default] 281 | switch (dp->fmt) | ^~~~~~ -
exeval.c:1192:68: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1192 | if ((*t)->floating == v.floating) | ^~ -
exeval.c:1180:41: warning: switch missing default case [-Wswitch-default] 1180 | switch ((int)i.integer) | ^~~~~~ -
exeval.c:1448:56: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1448 | if (r.floating == 0.0) | ^~ -
exeval.c:1462:62: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1462 | v.floating = (long long)v.floating % (long long)rounded; | ^ -
exeval.c:1475:54: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1475 | v.floating = (long long)v.floating << (long long)r.floating; | ^ -
exeval.c:1481:54: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion] 1481 | v.floating = (unsigned long long)v.floating >> (long long)r.floating; | ^ -
exeval.c:1526:53: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 1526 | v.integer = (unsigned long long)v.integer >> r.integer; | ^ -
exeval.c:1034:9: warning: switch missing default case [-Wswitch-default] 1034 | switch (exnode->op) | ^~~~~~ -
exeval.c:1605:37: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 1605 | v.integer = v.floating; | ^ -
exeval.c:1630:38: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1630 | v.floating = ~(long long)v.floating; | ^ -
exeval.c:1654:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1654 | if (r.floating == 0.0) | ^~ -
exeval.c:1660:42: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 1660 | if ((r.integer = r.floating) == 0) | ^ -
exeval.c:1663:46: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1663 | v.floating = (long long)v.floating % r.integer; | ^ -
exeval.c:1672:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1672 | v.integer = v.floating == r.floating; | ^~ -
exeval.c:1675:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1675 | v.integer = v.floating != r.floating; | ^~ -
exeval.c:1602:17: warning: switch missing default case [-Wswitch-default] 1602 | switch (exnode->op) | ^~~~~~ -
exeval.c:1723:17: warning: switch missing default case [-Wswitch-default] 1723 | switch (exnode->op) | ^~~~~~ -
exeval.c:1748:46: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion] 1748 | v.floating = (unsigned long long)v.integer; | ^ -
exeval.c:1750:46: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1750 | v.floating = v.integer; | ^ -
exeval.c:1831:37: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 1831 | v.integer = (unsigned long long)v.integer >> r.integer; | ^ -
exeval.c:1741:17: warning: switch missing default case [-Wswitch-default] 1741 | switch (exnode->op) | ^~~~~~ -
exeval.c:1848:17: warning: switch missing default case [-Wswitch-default] 1848 | switch (exnode->op) | ^~~~~~ -
exeval.c:1912:17: warning: switch missing default case [-Wswitch-default] 1912 | switch (exnode->op) | ^~~~~~ -
../../lib/cdt/cdt.h:185:49: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 185 | #define dtmatch(d, o) (*(_DT(d)->searchf))((d), (void *)(o), DT_MATCH) | ^ -
../../lib/expr/exlib.h:127:123: warning: conversion from 'int' to 'char' may change value [-Wconversion] 127 | #define putcontext(p,c) (((p)->linep>=&(p)->line[sizeof((p)->line)]?(p)->linep=(p)->line,(p)->linewrap=1:0),*(p)->linep++=(c)) | ^ -
extoken.c:340:41: warning: switch missing default case [-Wswitch-default] 340 | switch (lex(ex)) | ^~~~~~ -
extoken.c:332:42: warning: switch missing default case [-Wswitch-default] 332 | for (;;) switch (lex(ex)) | ^~~~~~ -
extoken.c:592:59: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 592 | ex_lval.integer = strtoull(s, &e, b); | ^~~~~~~~ -
extoken.c:637:33: warning: switch missing default case [-Wswitch-default] 637 | switch (ex_lval.id->lex) | ^~~~~~ -
extoken.c:849:50: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 849 | return ex_lval.id->lex; | ~~~~~~~~~~^~~~~ -
extype.c:27:9: warning: switch missing default case [-Wswitch-default] 27 | switch (type) | ^~~~~~ -
exzero.c:29:9: warning: switch missing default case [-Wswitch-default] 29 | switch (type) | ^~~~~~ -
../../lib/expr/exgram.h:488:58: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 488 | x->data.constant.value.integer = x->data.constant.value.floating; | ^ -
../../lib/expr/exgram.h:495:59: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 495 | x->data.constant.value.floating = x->data.constant.value.integer; | ^ -
../../lib/expr/exgram.h:717:25: warning: switch missing default case [-Wswitch-default] 717 | switch (t) | ^~~~~~ -
../../lib/expr/exgram.h:809:35: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 809 | error_info.file = (char*)name; | ^ -
exnospace.c:32:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 32 | return (char*)null; | ^ -
arrows.c:260:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 260 | if (arrowsize == 0) { | ^~ -
arrows.c:364:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 364 | if (p.y == q.y) { // horizontal segment | ^~ -
arrows.c:401:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 401 | if (p.y == q.y) { // horizontal segment | ^~ -
arrows.c:425:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 425 | if (p.y == q.y) { // horizontal segment | ^~ -
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)) { | ^~ -
htmllex.c:380:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 380 | p->color = (char *)v; | ^ -
htmllex.c:386:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 386 | p->name = (char *)v; | ^ -
htmltable.c:977:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 977 | else if (tf.size != prev_fsize) { | ^~ -
htmltable.c:1705:5: warning: switch missing default case [-Wswitch-default] 1705 | switch (agobjkind(obj)) { | ^~~~~~ -
htmltable.c:1868:5: warning: switch missing default case [-Wswitch-default] 1868 | switch (agobjkind(obj)) { | ^~~~~~ -
routespl.c:945:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 945 | if (magV == 0) return; /* if midpoint == centroid, don't divide by zero */ | ^~ -
postproc.c:157:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 157 | bool shift = Offset.x || Offset.y; | ^~~~~~ -
postproc.c:157:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 157 | bool shift = Offset.x || Offset.y; | ^~ -
splines.c:551:9: warning: switch missing default case [-Wswitch-default] 551 | switch (et) { | ^~~~~~ -
splines.c:749:9: warning: switch missing default case [-Wswitch-default] 749 | switch (et) { | ^~~~~~ -
splines.c:1013:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1013 | case 65: if(tp.y == hp.y) | ^~ -
splines.c:1087:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1087 | if(tp.y == hp.y) | ^~ -
timing.c:25:18: warning: conversion from 'clock_t' {aka 'long int'} to 'double' may change value [-Wconversion] 25 | return (S - T) / (double)CLOCKS_PER_SEC; | ^ -
labels.c:121:5: warning: switch missing default case [-Wswitch-default] 121 | switch (agobjkind(obj)) { | ^~~~~~ -
labels.c:149:13: warning: switch missing default case [-Wswitch-default] 149 | switch (agobjkind(obj)) { | ^~~~~~ -
labels.c:295:5: warning: switch missing default case [-Wswitch-default] 295 | switch (agobjkind(obj)) { | ^~~~~~ -
shapes.c:739:5: warning: switch missing default case [-Wswitch-default] 739 | switch (mode.shape) { | ^~~~~~ -
shapes.c:2335:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2335 | assert(cosx != 0 || sinx != 0); | ^~ -
shapes.c:2335:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2335 | assert(cosx != 0 || sinx != 0); | ^~ -
shapes.c:2618:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2618 | if (angle == M_PI) | ^~ -
shapes.c:2620:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2620 | else if (angle == M_PI * 0.75) | ^~ -
shapes.c:2622:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2622 | else if (angle == M_PI * 0.5) | ^~ -
shapes.c:2624:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2624 | else if (angle == 0) | ^~ -
shapes.c:2626:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2626 | else if (angle == M_PI * -0.25) | ^~ -
shapes.c:2628:24: 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:21: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 2871 | pp->order = (int) (MC_SCALE * angle / (2 * M_PI)); | ^ -
utils.c:708:9: warning: switch missing default case [-Wswitch-default] 708 | switch (agobjkind(obj)) { | ^~~~~~ -
utils.c:1042:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1042 | edge_t **edgelist = gv_calloc(ecnt, sizeof(edge_t*)); | ^~~~ -
utils.c:1226:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1226 | v = htmlEntity (&s); | ^~~~~~~~~~ -
utils.c:1229:29: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1229 | c = v; | ^ -
utils.c:1270:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1270 | v = htmlEntity (&s); | ^~~~~~~~~~ -
utils.c:1435:20: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1435 | GD_flags(g) |= et; | ^~ -
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) { | ^~ -
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) | ^~ -
taper.c:242:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 242 | if (cos(phi) == 0) { | ^~ -
emit.c:229:5: warning: switch missing default case [-Wswitch-default] 229 | switch (agobjkind(obj)) { | ^~~~~~ -
emit.c:1014:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1014 | int* laylist = gv_calloc(gvc->numLayers + 2, sizeof(int)); | ~~~~~~~~~~~~~~~^~~ -
../../lib/common/arith.h:48:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 48 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ^ -
emit.c:1429:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1429 | if (p->x1 == p->x0 && p->y1 == p->y0) { | ^~ -
emit.c:1429:45: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1429 | if (p->x1 == p->x0 && p->y1 == p->y0) { | ^~ -
emit.c:1811:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 1811 | ND_state(n) = gvc->common.viewNum; /* mark node as drawn */ | ^~~ -
emit.c:2579:44: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2579 | if (want_rounded && radius == 0.0) { | ^~ -
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) { | ^~ -
emit.c:3196:24: warning: conversion from 'unsigned int' to 'unsigned char:7' may change value [-Wconversion] 3196 | tf.flags = fontflags; | ^~~~~~~~~ -
pack.c:300:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 300 | void **alg = gv_calloc(agnnodes(g), sizeof(void *)); | ^~~~~~~~~~~ -
pack.c:622:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 622 | nr = ceil(sqrt(ng)); | ^~ -
pack.c:622:12: warning: conversion from 'double' to 'size_t' {aka 'long unsigned int'} may change value [-Wfloat-conversion] 622 | nr = ceil(sqrt(ng)); | ^~~~ -
pack.c:631:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 631 | nc = ceil(sqrt(ng)); | ^~ -
pack.c:631:12: warning: conversion from 'double' to 'size_t' {aka 'long unsigned int'} may change value [-Wfloat-conversion] 631 | nc = ceil(sqrt(ng)); | ^~~~ -
pack.c:917:28: warning: conversion to 'packval_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 917 | pinfo->vals[i] = v; | ^ -
pack.c:1288:19: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1288 | pinfo->margin = getPack(g, dfltMargin, dfltMargin); | ^~~~~~~ -
xlabels.c:77:10: 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:215:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 215 | if ((op->pos.x == 0.0 && op->pos.y == 0.0) || | ^~ -
xlabels.c:215:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 215 | if ((op->pos.x == 0.0 && op->pos.y == 0.0) || | ^~ -
xlabels.c:216:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 216 | (cp->pos.x == 0.0 && cp->pos.y == 0.0)) | ^~ -
xlabels.c:216:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 216 | (cp->pos.x == 0.0 && cp->pos.y == 0.0)) | ^~ -
xlabels.c:494:15: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 494 | int order = xlhorder(xlp); | ^~~~~~~~ -
xlabels.c:510:15: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-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) { | ^~ -
gvrender.c:197:55: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 197 | (bsearch(name, features->knowncolors, features->sz_knowncolors, | ~~~~~~~~^~~~~~~~~~~~~~~~ -
gvevent.c:124:9: warning: switch missing default case [-Wswitch-default] 124 | switch (agobjkind(obj)) { | ^~~~~~ -
gvevent.c:151:9: warning: switch missing default case [-Wswitch-default] 151 | switch (agobjkind(obj)) { | ^~~~~~ -
gvevent.c:228:9: warning: switch missing default case [-Wswitch-default] 228 | switch (agobjkind(obj)) { | ^~~~~~ -
gvevent.c:249:9: warning: switch missing default case [-Wswitch-default] 249 | switch (agobjkind(obj)) { | ^~~~~~ -
gvevent.c:268:5: warning: switch missing default case [-Wswitch-default] 268 | switch (button) { | ^~~~~~ -
gvevent.c:345:5: warning: switch missing default case [-Wswitch-default] 345 | switch (job->button) { | ^~~~~~ -
gvevent.c:435:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 435 | dflt_width = job->width; | ^~~ -
gvevent.c:436:23: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 436 | dflt_height = job->height; | ^~~ -
../../lib/util/agxbuf.h:276:5: warning: 'memcpy' forming offset [32, 71] is out of the bounds [0, 32] of object 'libdir' with type 'agxbuf' [-Warray-bounds=] 276 | memcpy(&xb->store[len], s, ssz); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
furtherest_point.c:95:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 95 | if (!(*argmax)) *argmax = gv_calloc(dim, sizeof(double)); | ^~~ -
furtherest_point.c:96:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 96 | memcpy(*argmax, center, sizeof(double)*dim); | ^ -
furtherest_point.c:136:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 136 | memcpy(*argmax, qt->qts[ii]->center, sizeof(double)*dim); | ^ -
furtherest_point.c:196:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 196 | if (!(*argmax)) *argmax = gv_calloc(dim, sizeof(double)); | ^~~ -
furtherest_point.c:197:42: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 197 | memcpy(*argmax, average, sizeof(double)*dim); | ^ -
furtherest_point.c:237:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 237 | memcpy(*argmax, qt->qts[ii]->average, sizeof(double)*dim); | ^ -
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]){ | ^~ -
../../lib/common/arith.h:33:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ~~~~~~~~~~~~^~~~~ -
lab.c:252:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 252 | double *colors = gv_calloc(maxpoints * cdim, sizeof(double)); | ~~~~~~~~~~^~~~~~ -
node_distinct_coloring.c:93:9: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 93 | srand(seed); | ^~~~ -
node_distinct_coloring.c:96:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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:67: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 111 | memcpy(&(x[k*cdim]), &(colors[ja[j]*cdim]), sizeof(double)*cdim); | ^ -
node_distinct_coloring.c:233:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 233 | *colors = gv_calloc(cdim * n, sizeof(double)); | ^ -
node_distinct_coloring.c:234:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 234 | double *ctmp = gv_calloc(cdim * n, sizeof(double)); | ^ -
node_distinct_coloring.c:248:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 248 | memcpy(&((*colors)[comps[j]*cdim]), &(ctmp[jj*cdim]), cdim*sizeof(double)); | ^ -
circpos.c:250:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 250 | if (childAngle != 0) { | ^~ -
cluster.c:102:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 102 | ED_edge_type(e) = type; | ^~~~ -
cluster.c:112:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 112 | ED_edge_type(ve) = type; | ^~~~ -
cluster.c:119:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 119 | ED_edge_type(ve) = type; | ^~~~ -
cluster.c:134:35: warning: conversion from 'int' to 'char' may change value [-Wconversion] 134 | ED_edge_type(e) = type; | ^~~~ -
cluster.c:350:54: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 350 | GD_rankleader(subg) = gv_calloc(GD_maxrank(subg) + 2, sizeof(node_t*)); -
cluster.c:394:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 394 | GD_installed(clust) = pass + 1; | ^~~~ -
compound.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) | ^~ -
flat.c:26:70: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 26 | GD_rank(g)[r].av = gv_recalloc(GD_rank(g)[r].av, GD_rank(g)[r].n + 1, -
flat.c:27:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 27 | GD_rank(g)[r].n + 2, sizeof(node_t *)); -
flat.c:193:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 193 | rank_t *rptr = gv_recalloc(GD_rank(g), GD_maxrank(g) + 1, r, -
flat.c:193:63: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 193 | rank_t *rptr = gv_recalloc(GD_rank(g), GD_maxrank(g) + 1, r, | ^ -
dotinit.c:398:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 398 | GD_clust(cl) = gv_calloc(nclust + 1, sizeof(Agraph_t*)); | ~~~~~~~^~~ -
dotinit.c:421:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 421 | GD_clust(root) = gv_calloc(nclust + 1, sizeof(Agraph_t*)); | ~~~~~~~^~~ -
mincross.c:458:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 458 | qsort(sortlist, ne, sizeof(sortlist[0]), edgeidcmpf); | ^~ -
mincross.c:114:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 114 | #define saveorder(v) (ND_coord(v)).x | ^ -
mincross.c:764:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 764 | qsort(GD_rank(g)[r].v, GD_rank(g)[r].n, sizeof(GD_rank(g)[0].v[0]), -
../../lib/common/types.h:523:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 523 | #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
mincross.c:978:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 978 | bitarray_set(ranks, i, true); | ^ -
mincross.c:982:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 982 | if (!bitarray_get(*ranks, i)) { | ^ -
mincross.c:1002:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1002 | bitarray_t rnks = bitarray_new(rnks_sz); | ^~~~~~~ -
mincross.c:1017:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1017 | TE_list = gv_calloc(size, sizeof(edge_t *)); | ^~~~ -
mincross.c:1018:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1018 | TI_list = gv_calloc(size, sizeof(int)); | ^~~~ -
mincross.c:1124:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1124 | int *cn = gv_calloc(GD_maxrank(g) + 2, -
mincross.c:1138:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1138 | GD_rank(g) = gv_calloc(GD_maxrank(g) + 2, sizeof(rank_t)); -
mincross.c:1141:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1141 | GD_rank(g)[r].av = GD_rank(g)[r].v = gv_calloc(cn[r] + 1, sizeof(node_t *)); | ~~~~~~^~~ -
mincross.c:1509:49: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1509 | int *Count = gv_calloc(GD_rank(Root)[r + 1].n + 1, sizeof(int)); -
../../lib/common/types.h:270:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 270 | L.list = gv_calloc(n + 1, sizeof(edge_t *)); \ -
position.c:266:38: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 266 | last = (ND_rank(v) = last + width); | ^~~~ -
../../lib/common/types.h:592:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 592 | #define ED_minlen(e) (((Agedgeinfo_t*)AGDATA(e))->minlen) | ^ -
../../lib/common/arith.h:33:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 33 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ -
position.c:338:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 338 | m0 = (ED_head_port(e).p.x - ED_tail_port(e).p.x); | ^ -
position.c:992:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 992 | node_t **new_v = gv_calloc(j + 1, sizeof(node_t*)); | ~~^~~ -
position.c:1007:38: 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:38: 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:38: 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:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1011 | ED_tail_port(e).p.y == ED_tail_port(f).p.y) | ^~ -
rank.c:186:26: warning: conversion from 'int' to 'char' may change value [-Wconversion] 186 | ND_ranktype(u) = kind; | ^~~~ -
rank.c:191:9: warning: switch missing default case [-Wswitch-default] 191 | switch (kind) { | ^~~~~~ -
rank.c:209:41: warning: conversion from 'int' to 'char' may change value [-Wconversion] 209 | ND_ranktype(GD_minset(g)) = kind; | ^~~~ -
rank.c:212:41: warning: conversion from 'int' to 'char' may change value [-Wconversion] 212 | ND_ranktype(GD_maxset(g)) = kind; | ^~~~ -
rank.c:207:9: warning: switch missing default case [-Wswitch-default] 207 | switch (kind) { | ^~~~~~ -
rank.c:229:22: warning: conversion from 'int' to 'char' may change value [-Wconversion] 229 | GD_set_type(g) = val; | ^~~ -
../../lib/common/types.h:389:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 389 | #define GD_n_cluster(g) (((Agraphinfo_t*)AGDATA(g))->n_cluster) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -
rank.c:238:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 238 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~^~~ -
rank.c:965:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 965 | minrk = gv_calloc(ncc + 1, sizeof(int)); | ~~~~^~~ -
rank.c:1058:63: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1058 | { int *sz = arg; (void)g; agbindrec(graph,"level graph rec",sz[0],true); } | ~~^~~ -
rank.c:1060:61: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1060 | { int *sz = arg; (void)g; agbindrec(node,"level node rec",sz[1],true); } | ~~^~~ -
rank.c:1062:61: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1062 | { int *sz = arg; (void)g; agbindrec(edge,"level edge rec",sz[2],true); } | ~~^~~ -
sameport.c:152:9: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] 152 | (MC_SCALE * (ND_lw(u) + prt.p.x)) / (ND_lw(u) + ND_rw(u)); | ^ -
dotsplines.c:331:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 331 | P.boxes = gv_calloc(n_nodes + 20 * 2 * NSUB, sizeof(boxf)); | ^ -
dotsplines.c:332:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 332 | sd.Rank_box = gv_calloc(i, sizeof(boxf)); | ^ -
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) | ^~ -
../../lib/common/types.h:483:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 483 | #define ND_id(n) (((Agnodeinfo_t*)AGDATA(n))->id) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
grid.c:45:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 45 | newb->mem = gv_calloc(size, sizeof(cell)); | ^~~~ -
grid.c:82:35: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 82 | bp->next = newBlock(2 * (bp->endp - bp->mem)); | ~~^~~~~~~~~~~~~~~~~~~~~~ -
grid.c:178:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 178 | g->listMem = gv_calloc(nsize, sizeof(node_list)); | ^~~~~ -
fdpinit.c:96:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 96 | GD_neato_nlist(g) = gv_calloc(nn + 1, sizeof(node_t *)); | ~~~^~~ -
layout.c:348:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'short int' may change the sign of the result [-Wsign-conversion] 348 | el = gv_recalloc(el, cnt, cnt + 1, sizeof(edge_t*)); | ^~~ -
layout.c:348:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 348 | el = gv_recalloc(el, cnt, cnt + 1, sizeof(edge_t*)); | ~~~~^~~ -
layout.c:491:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 491 | PORTS(dg) = pq = gv_calloc(sz + 1, sizeof(bport_t)); | ~~~^~~ -
layout.c:558:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 558 | erec *erecs = gv_calloc(deg + 1, sizeof(erec)); | ~~~~^~~ -
layout.c:573:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 573 | qsort(erecs, deg, sizeof(erec), ecmp); | ^~~ -
layout.c:584:46: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 584 | while (j < deg && erecs[j].alpha == a) | ^~ -
layout.c:674:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 674 | bport_t *pp = gv_calloc(sz + 1, sizeof(bport_t)); | ~~~^~~ -
layout.c:1006:26: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1006 | GD_ndim(agroot(g)) = late_int(g, agattr_text(g,AGRAPH, "dim", NULL), 2, 2); | ^~~~~~~~ -
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) { | ^~ -
tlayout.c:295:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 295 | while (dist2 == 0.0) { | ^~ -
tlayout.c:356:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 356 | #define FLOOR(d) ((int)floor(d)) | ^ -
tlayout.c:593:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 593 | if (ctr.x != 0.0 || ctr.y != 0.0) { | ^~ -
tlayout.c:593:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 593 | if (ctr.x != 0.0 || ctr.y != 0.0) { | ^~ -
xlayout.c:80:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 80 | if (xParams.T0 == 0.0) | ^~ -
adjust.c:233:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 233 | (*jp)->coord.x != (*ip)->coord.x || | ^~ -
adjust.c:234:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 234 | (*jp)->coord.y != (*ip)->coord.y) { | ^~ -
adjust.c:243:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 243 | (*kp)->coord.x == (*ip)->coord.x && | ^~ -
adjust.c:244:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 244 | (*kp)->coord.y == (*ip)->coord.y) { | ^~ -
adjust.c:251:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 251 | if (kp < st->endSite && (*kp)->coord.y == (*ip)->coord.y) { | ^~ -
adjust.c:526:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 526 | int* elabs = gv_calloc(nedge_nodes, sizeof(int)); | ^~~~~~~~~~~ -
adjust.c:553:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 553 | int *I = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
adjust.c:554:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 554 | int *J = gv_calloc(nedges, sizeof(int)); | ^~~~~~ -
adjust.c:555:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 555 | double *val = gv_calloc(nedges, sizeof(double)); | ^~~~~~ -
adjust.c:642:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 642 | pointf *nsize = gv_calloc(nnodes, sizeof(pointf)); | ^~~~~~ -
adjust.c:644:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 644 | float *f_storage = gv_calloc(dim * nnodes, sizeof(float)); | ~~~~^~~~~~~~ -
adjust.c:647:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 647 | coords[i] = f_storage + i * nnodes; | ^ -
adjust.c:736:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 736 | if (p.x || p.y) ret = 1; | ^ -
adjust.c:736:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 736 | if (p.x || p.y) ret = 1; | ^~ -
adjust.c:750:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 750 | if (phi) { | ^~~ -
adjust.c:881:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 881 | if (sc.y == 1 && sc.x == 1) return 0; | ^~ -
adjust.c:881:35: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 881 | if (sc.y == 1 && sc.x == 1) return 0; | ^~ -
edges.c:66:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 66 | if (e->a == 1.0 && e->b >= 0.0) { | ^~ -
edges.c:74:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 74 | if (e->a == 1.0) { | ^~ -
geometry.c:27:10: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 27 | sn = nsites + 4; | ^~~~~~ -
geometry.c:28:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 28 | sqrt_nsites = (int) sqrt(sn); | ^ -
geometry.c:71:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 71 | if (denom == 0.0) | ^~ -
heap.c:124:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 124 | pq->hash = gv_calloc(pq->hashsize, sizeof(Halfedge)); | ~~^~~~~~~~~~ -
hedges.c:34:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 34 | st->hash = gv_calloc(st->hashsize, sizeof(Halfedge *)); | ~~^~~~~~~~~~ -
hedges.c:67:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 67 | (e1->reg[1]->coord.y == e2->reg[1]->coord.y && | ^~ -
hedges.c:100:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 100 | if (e->a == 1.0) { | ^~ -
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:205:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 205 | bitarray_t assigned = bitarray_new(agnnodes(g)); | ^~~~~~~~~~~ -
neatoinit.c:235:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 235 | bitarray_set(&assigned, ind, true); | ^~~ -
neatoinit.c:243:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 243 | if(!bitarray_get(assigned, i)) { | ^ -
neatoinit.c:442:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 442 | GD_clust(g) = gv_recalloc(GD_clust(g), GD_n_cluster(g), cno + 1, | ~~~~^~~ -
neatoinit.c:579:60: 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:80: 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: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 602 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ^~~~~~~~ -
../../lib/common/arith.h:28:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 28 | #define MIN(a,b) ((a)<(b)?(a):(b)) | ^ -
neatoinit.c:773:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 773 | vtx_data *graph = gv_calloc(nv, sizeof(vtx_data)); | ^~ -
neatoinit.c:774:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 774 | node_t** nodes = gv_calloc(nv, sizeof(node_t*)); | ^~ -
../../lib/common/types.h:585:22: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 585 | #define ED_factor(e) (((Agedgeinfo_t*)AGDATA(e))->factor) | ^ -
neatoinit.c:819:43: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 819 | graph[i].ewgts[idx] = fmax(graph[i].ewgts[idx], ED_dist(ep)); | ^~~~ -
../../lib/common/types.h:602:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 602 | #define ED_dist(e) (((Agedgeinfo_t*)AGDATA(e))->dist) | ^ -
neatoinit.c:862:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 862 | edges = gv_recalloc(graph[0].edges, edges_size, 2 * ne + nv, sizeof(int)); | ~~~~~~~^~~~ -
neatoinit.c:864:68: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 864 | ewgts = gv_recalloc(graph[0].ewgts, edges_size, 2 * ne + nv, sizeof(float)); | ~~~~~~~^~~~ -
neatoinit.c:866:74: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 866 | eweights = gv_recalloc(graph[0].eweights, edges_size, 2 * ne + nv, sizeof(float)); | ~~~~~~~^~~~ -
neatoinit.c:1099:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1099 | double **coords = gv_calloc(dim, sizeof(double *)); | ^~~ -
neatoinit.c:1100:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1100 | coords[0] = gv_calloc(nv * dim, sizeof(double)); | ~~~^~~~~ -
neatoinit.c:1129:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 136 | if (ls.x == le.x) { | ^~ -
legal.c:139:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 139 | } else if (ms.x == me.x) { | ^~ -
legal.c:174:43: 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 case [-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:16: 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:27:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 27 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ -
legal.c:27:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 27 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ -
legal.c:201:16: 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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 363 | polygon *polygon_list = gv_calloc(n_polys, sizeof(polygon)); | ^~~~~~~ -
lu.c:71:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 71 | lu->ps = gv_calloc(n, sizeof(int)); | ^ -
lu.c:72:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 72 | double *const scales = gv_calloc(n, sizeof(double)); | ^ -
lu.c:118:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 118 | if (lu->lu[lu->ps[n - 1]][n - 1] == 0.0) { | ^~ -
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:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 69 | return ((verts[2].y == verts[3].y) && | ^~ -
poly.c:70:29: 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:59: 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:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 72 | return ((verts[0].x == verts[1].x) && | ^~ -
poly.c:73:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 73 | (verts[2].x == verts[3].x) && | ^~ -
poly.c:74:29: 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:59: 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:263:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 263 | if ((xmargin != 1.0) || (ymargin != 1.0)) | ^~ -
poly.c:263:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 263 | if ((xmargin != 1.0) || (ymargin != 1.0)) | ^~ -
poly.c:311:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 311 | if (cross == 0 && !bHA && !aHB) { | ^~ -
poly.c:353:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 353 | if (tp3[i].y == 0 && tp3[i1].y == 0) { | ^~ -
poly.c:353:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 353 | if (tp3[i].y == 0 && tp3[i1].y == 0) { | ^~ -
poly.c:370:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 370 | if (x == 0) { | ^~ -
poly.c:377:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 377 | if (tp3[i].y == 0 || tp3[i1].y == 0) { | ^~ -
poly.c:377:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 377 | if (tp3[i].y == 0 || tp3[i1].y == 0) { | ^~ -
neatosplines.c:272:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 272 | assert(p.x != a && | ^~ -
neatosplines.c:603:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 603 | obs = gv_calloc(agnnodes(g), sizeof(Ppoly_t*)); | ^~~~~~~~~~~ -
../../lib/common/types.h:354:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 354 | #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) | ^ -
neatosplines.c:1033:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1033 | if (GD_bb(g).LL.x || GD_bb(g).LL.y) { | ^~ -
stuff.c:43:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 43 | double **rv = gv_calloc(m, sizeof(double*)); | ^ -
stuff.c:44:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | double *mem = gv_calloc(m * n, sizeof(double)); | ~~^~~ -
stuff.c:67:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 67 | double ***rv = gv_calloc(m + 1, sizeof(double**)); | ~~^~~ -
stuff.c:69:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 69 | rv[i] = gv_calloc(n + 1, sizeof(double*)); | ~~^~~ -
stuff.c:71:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 71 | rv[i][j] = gv_calloc(p, sizeof(double)); | ^ -
stuff.c:108:56: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 108 | if (sscanf(s, "%lf", val) < 1 || *val < 0 || (*val == 0 && !Nop)) { | ^~ -
stuff.c:240:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 240 | GD_neato_nlist(G) = gv_calloc(nV + 1, sizeof(node_t*)); | ~~~^~~ -
stuff.c:250:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 250 | GD_neato_nlist(G) = gv_calloc(nV + 1, sizeof(node_t *)); | ~~~^~~ -
stuff.c:638:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 638 | Heap = gv_calloc(nG + 1, sizeof(node_t*)); | ~~~^~~ -
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))) { | ^~ -
stress.c:172:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 172 | float *Dij = gv_calloc(nG * (nG + 1) / 2, sizeof(float)); | ~~~~~~~~~~~~~~^~~ -
stress.c:257:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 257 | double **subspace = gv_calloc(subspace_dim, sizeof(double *)); | ^~~~~~~~~~~~ -
stress.c:258:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 258 | double *d_storage = gv_calloc(subspace_dim * n, sizeof(double)); | ~~~~~~~~~~~~~^~~ -
stress.c:313:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 313 | int *CenterIndex = gv_calloc(n, sizeof(int)); | ^ -
stress.c:332:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 332 | DistType *dist = gv_calloc(n, sizeof(DistType)); | ^ -
stress.c:337:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 337 | invCenterIndex = gv_calloc(num_centers, sizeof(int)); | ^~~~~~~~~~~ -
stress.c:339:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 339 | storage = gv_calloc(n * num_centers, sizeof(DistType)); | ~~^~~~~~~~~~~~~ -
stress.c:340:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 340 | Dij = gv_calloc(num_centers, sizeof(DistType *)); | ^~~~~~~~~~~ -
stress.c:395:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 395 | visited_nodes = gv_calloc(n, sizeof(int)); | ^ -
stress.c:396:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 396 | distances = gv_calloc(n, sizeof(dist_data)); | ^ -
stress.c:401:46: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 401 | distances[i].edges = gv_calloc(n - 1, sizeof(int)); | ~~^~~ -
stress.c:402:46: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 402 | distances[i].edist = gv_calloc(n - 1, sizeof(DistType)); | ~~^~~ -
stress.c:424:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 424 | storage1 = gv_calloc(available_space, sizeof(int)); | ^~~~~~~~~~~~~~~ -
stress.c:425:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 425 | storage2 = gv_calloc(available_space, sizeof(DistType)); | ^~~~~~~~~~~~~~~ -
stress.c:463:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 463 | lap = gv_calloc(n, sizeof(vtx_data)); | ^ -
stress.c:464:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 464 | edges = gv_calloc(nedges + n, sizeof(int)); | ^ -
stress.c:465:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 465 | ewgts = gv_calloc(nedges + n, sizeof(float)); | ^ -
stress.c:497:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 497 | directions = gv_calloc(dim, sizeof(double *)); | ^~~ -
stress.c:498:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 498 | directions[0] = gv_calloc(dim * subspace_dim, sizeof(double)); | ~~~~^~~~~~~~~~~~~~ -
stress.c:534:36: 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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 563 | b = gv_calloc(n, sizeof(double)); | ^ -
stress.c:564:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 564 | b_restricted = gv_calloc(subspace_dim, sizeof(double)); | ^~~~~~~~~~~~ -
stress.c:584:42: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 584 | L_ij = -ewgts[j] * dist_list[j] / dist_ij; /* L_ij=w_{ij}*d_{ij}/dist_{ij} */ | ^ -
stress.c:648:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 648 | float *Dij = gv_calloc(n * (n + 1) / 2, sizeof(float)); | ~~~~~~~~~~~~^~~ -
stress.c:650:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 650 | float *Di = gv_calloc(n, sizeof(float)); | ^ -
stress.c:699:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 699 | float *Dij = gv_calloc(n * (n + 1) / 2, sizeof(float)); | ~~~~~~~~~~~~^~~ -
stress.c:701:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 701 | DistType *Di = gv_calloc(n, sizeof(DistType)); | ^ -
stress.c:730:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 730 | int *vtx_vec = gv_calloc(n, sizeof(int)); | ^ -
stress.c:916:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 916 | coords = gv_calloc(dim, sizeof(float *)); | ^~~ -
stress.c:917:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 917 | f_storage = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
stress.c:928:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] 928 | constant_term = (float)n * (n - 1) / 2; | ^ -
stress.c:944:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 944 | degrees = gv_calloc(n, sizeof(DegType)); | ^ -
stress.c:956:23: warning: conversion from 'long double' to 'float' may change value [-Wfloat-conversion] 956 | lap2[count] = degrees[i]; | ^~~~~~~ -
stress.c:963:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 963 | b = gv_calloc(dim, sizeof(float *)); | ^~~ -
stress.c:964:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 964 | b[0] = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
stress.c:969:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 969 | tmp_coords = gv_calloc(n, sizeof(float)); | ^ -
stress.c:970:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 970 | dist_accumulator = gv_calloc(n, sizeof(float)); | ^ -
stress.c:971:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 971 | lap1 = gv_calloc(lap_length, sizeof(float)); | ^~~~~~~~~~ -
stress.c:986:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 986 | memset(degrees, 0, n * sizeof(DegType)); | ^ -
stress.c:1031:27: warning: conversion from 'long double' to 'float' may change value [-Wfloat-conversion] 1031 | lap1[count] = degrees[i]; | ^~~~~~~ -
kkutils.c:58:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 58 | DistType **dij = gv_calloc(n, sizeof(DistType*)); | ^ -
kkutils.c:75:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 75 | DistType **dij = gv_calloc(n, sizeof(DistType*)); | ^ -
kkutils.c:143:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 143 | gv_sort(ordering + first, last - first + 1, sizeof(ordering[0]), fcmpf, place); | ~~~~~~~~~~~~~^~~ -
kkutils.c:162:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 162 | gv_sort(ordering, size, sizeof(ordering[0]), cmp, place); | ^~~~ -
kkutils.c:171:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 171 | int *vtx_vec = gv_calloc(n, sizeof(int)); | ^ -
matrix_ops.c:26:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 26 | double *tmp_vec = gv_calloc(n, sizeof(double)); | ^ -
matrix_ops.c:27:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 27 | double *last_vec = gv_calloc(n, sizeof(double)); | ^ -
matrix_ops.c:38:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 38 | double *const evals = gv_calloc(neigs, sizeof(evals[0])); | ^~~~~ -
matrix_ops.c:136:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 136 | float *storage = gv_calloc(dim1 * dim3, sizeof(storage[0])); | ~~~~~^~~~~~ -
matrix_ops.c:137:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 137 | float **const C = *CC = gv_calloc(dim1, sizeof(C[0])); | ^~~~ -
matrix_ops.c:164:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 164 | double *storage = gv_calloc(dim1 * dim3, sizeof(double)); | ~~~~~^~~~~~ -
matrix_ops.c:165:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 165 | double **C = *CC = gv_calloc(dim1, sizeof(double *)); | ^~~~ -
matrix_ops.c:193:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 193 | float *storage = gv_calloc(dim1 * dim2, sizeof(A[0])); | ~~~~~^~~~~~ -
matrix_ops.c:194:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 194 | float **C = *CC = gv_calloc(dim1, sizeof(A)); | ^~~~ -
matrix_ops.c:394:9: warning: conversion from 'int' to 'float' may change value [-Wconversion] 394 | sum /= n; | ^~ -
matrix_ops.c:506:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 506 | if (vec[i] != 0.0) { | ^~ -
embed_graph.c:41:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 41 | DistType *storage = gv_calloc(n * dim, sizeof(DistType)); | ~~^~~~~ -
embed_graph.c:42:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 42 | DistType *dist = gv_calloc(n, sizeof(DistType)); // this vector stores the | ^ -
embed_graph.c:49:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 49 | DistType **coords = *Coords = gv_calloc(dim, sizeof(DistType *)); | ^~~ -
conjgrad.c:32:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 32 | double *r = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:33:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 33 | double *p = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:34:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 34 | double *Ap = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:35:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 35 | double *Ax = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:36:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 36 | double *alphap = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:38:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 38 | double *orth_b = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:50:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 50 | if (p_Ap == 0) | ^~ -
conjgrad.c:64:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 64 | if (r_r == 0) { | ^~ -
conjgrad.c:101:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 101 | double *r = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:102:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 102 | double *p = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:103:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 103 | double *Ap = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:104:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 104 | double *Ax = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:105:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 105 | double *alphap = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:107:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 107 | double *orth_b = gv_calloc(n, sizeof(double)); | ^ -
conjgrad.c:121:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 121 | if (p_Ap == 0) | ^~ -
conjgrad.c:139:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 139 | if (r_r == 0) { | ^~ -
conjgrad.c:172:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 172 | float *r = gv_calloc(n, sizeof(float)); | ^ -
conjgrad.c:173:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 173 | float *p = gv_calloc(n, sizeof(float)); | ^ -
conjgrad.c:174:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 174 | float *Ap = gv_calloc(n, sizeof(float)); | ^ -
conjgrad.c:175:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 175 | float *Ax = gv_calloc(n, sizeof(float)); | ^ -
conjgrad.c:201:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 201 | if (p_Ap == 0) | ^~ -
conjgrad.c:215:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 215 | if (r_r == 0) { | ^~ -
dijkstra.c:104:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 104 | .data = gv_calloc(n - 1, sizeof(int)), | ~~^~~ -
dijkstra.c:106:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 106 | .index = gv_calloc(n, sizeof(int)) | ^ -
dijkstra.c:212:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 212 | .data = gv_calloc(n - 1, sizeof(int)), | ~~^~~ -
dijkstra.c:214:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 214 | .index = gv_calloc(n, sizeof(int)) | ^ -
dijkstra.c:283:25: 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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 320 | if (bitarray_get(graph->pinneds, closest) || closest<source) { | ^~~~~~~ -
pca.c:31:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 31 | double **eigs = gv_calloc(new_dim, sizeof(double *)); | ^~~~~~~ -
pca.c:33:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 33 | eigs[i] = gv_calloc(dim, sizeof(double)); | ^~~ -
pca.c:35:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 35 | double **DD = gv_calloc(dim, sizeof(double *)); // dim×dim matrix: coords×coordsᵀ | ^~~ -
pca.c:36:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 36 | double *storage_ptr = gv_calloc(dim * dim, sizeof(double)); | ~~~~^~~~~ -
closest.c:40:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 40 | #define EQ(p,q) ((p).dist == (q).dist) | ^~ -
constraint.c:145:35: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 145 | if (ED_minlen(ce) == 0.0) { | ^~ -
constraint.c:241:32: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 241 | ED_minlen(e) = delta; | ^~~~~ -
constraint.c:24:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 24 | #define SCALE 10 | ^~ -
constraint.c:542:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 542 | nitem *nlist = gv_calloc(nnodes, sizeof(nitem)); | ^~~~~~ -
constraint.c:642:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 642 | if (p->pos.x == q->pos.x) | ^~ -
constraint.c:647:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 647 | if (p->pos.y == q->pos.y) | ^~ -
constraint.c:677:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 677 | if (p->pos.x == q->pos.x) | ^~ -
constraint.c:684:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 684 | if (p->pos.y == q->pos.y) | ^~ -
constraint.c:770:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 770 | info *nlist = gv_calloc(nnodes, sizeof(info)); | ^~~~~~ -
constraint.c:809:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 809 | if (s.x == 0) { /* overlaps exist */ | ^~ -
quad_prog_solve.c:31:27: warning: conversion from 'double' to 'float' changes value from '1.0e-2' to '9.99999978e-3' [-Wfloat-conversion] 31 | const float TOLERANCE = 1e-2; | ^~~~ -
quad_prog_solve.c:39:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 39 | float **mat = gv_calloc(n, sizeof(float *)); | ^ -
quad_prog_solve.c:40:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 40 | mat[0] = gv_calloc(n * n, sizeof(float)); | ~~^~~ -
quad_prog_solve.c:140:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 140 | int *lev = gv_calloc(n, sizeof(int)); // level of each node | ^ -
quad_prog_solve.c:145:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 145 | if (level == num_levels) { | ^~ -
quad_prog_solve.c:209:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 209 | if (level == num_levels) { | ^~ -
quad_prog_solve.c:230:45: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 230 | if (desired_place[node] == cur_place) { | ^~ -
quad_prog_solve.c:392:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 392 | ordering[i] = LIST_GET(&block, i - (size_t)left); | ^ -
quad_prog_solve.c:435:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 435 | e->fArray1 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_solve.c:436:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 436 | e->fArray2 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_solve.c:437:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 437 | e->fArray3 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_solve.c:438:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 438 | e->fArray4 = gv_calloc(n, sizeof(float)); | ^ -
smart_ini_x.c:75:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 75 | double *tmp_vec = gv_calloc(n, sizeof(double)); | ^ -
smart_ini_x.c:76:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 76 | double *last_vec = gv_calloc(n, sizeof(double)); | ^ -
smart_ini_x.c:187:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 187 | float* row_avg = gv_calloc(n, sizeof(float)); | ^ -
smart_ini_x.c:197:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 197 | row_avg[i]=(float)sum_row/n; | ^ -
smart_ini_x.c:199:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] 199 | *all_avg=(float)sum/(n*n); | ^ -
smart_ini_x.c:207:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 207 | float *storage = gv_calloc(n * n, sizeof(float)); | ~~^~~ -
smart_ini_x.c:208:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 208 | float **Bij = gv_calloc(n, sizeof(float *)); | ^ -
smart_ini_x.c:218:52: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 218 | Bij[i][j]=-(float)Dij[i][j]*Dij[i][j]+row_avg[i]+row_avg[j]-all_avg; | ^ -
smart_ini_x.c:232:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 232 | double *evals = gv_calloc(dim, sizeof(double)); | ^~~ -
smart_ini_x.c:235:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 235 | double *orthog_aux = gv_calloc(n, sizeof(double)); | ^ -
smart_ini_x.c:262:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 262 | float **lap = gv_calloc(n, sizeof(float *)); | ^ -
smart_ini_x.c:265:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 265 | double *balance = gv_calloc(n, sizeof(double)); | ^ -
smart_ini_x.c:297:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 297 | float *f_storage = gv_calloc(n * n, sizeof(float)); | ~~^~~ -
smart_ini_x.c:320:62: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 320 | Dij[i][j]=Dij[j][i]=diff>0 ? (DistType)sqrt(diff) : 0; | ^ -
smart_ini_x.c:333:54: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 333 | balance[i]+=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^ -
smart_ini_x.c:336:54: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 336 | balance[i]-=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^ -
smart_ini_x.c:354:53: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 354 | b+=Dij[i][j]*(-lap[i][j]); | ^ -
smart_ini_x.c:358:53: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 358 | b-=Dij[i][j]*(-lap[i][j]); | ^ -
smart_ini_x.c:362:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 362 | if ((b != balance[i]) && (fabs(1-b/balance[i])>1e-5)) { | ^~ -
constrained_majorization.c:246:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 246 | coords = gv_calloc(dim, sizeof(float *)); | ^~~ -
constrained_majorization.c:247:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 247 | f_storage = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
constrained_majorization.c:274:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 274 | degrees = gv_calloc(n, sizeof(double)); | ^ -
constrained_majorization.c:294:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 294 | b = gv_calloc(dim, sizeof(float *)); | ^~~ -
constrained_majorization.c:295:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 295 | b[0] = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
constrained_majorization.c:300:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 300 | tmp_coords = gv_calloc(n, sizeof(float)); | ^ -
constrained_majorization.c:301:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 301 | dist_accumulator = gv_calloc(n, sizeof(float)); | ^ -
constrained_majorization.c:302:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 302 | lap1 = gv_calloc(lap_length, sizeof(float)); | ^~~~~~~~~~ -
constrained_majorization.c:401:56: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 401 | levels_gap); | ^~~~~~~~~~ -
opt_arrangement.c:52:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 52 | double *b = gv_calloc(n, sizeof(double)); | ^ -
overlap.c:119:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 119 | scan_point *scanpointsx = gv_calloc(2 * n, sizeof(scan_point)); | ~~^~~ -
overlap.c:128:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 128 | qsort(scanpointsx, 2*n, sizeof(scan_point), comp_scan_points); | ~^~ -
overlap.c:130:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 364 | sm->lambda = gv_calloc(m, sizeof(double)); | ^ -
overlap.c:459:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 459 | double *xmin = gv_calloc(dim, sizeof(double)); | ^~~ -
overlap.c:460:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 460 | double *xmax = gv_calloc(dim, sizeof(double)); | ^~~ -
call_tri.c:25:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 25 | double* xv = gv_calloc(n, sizeof(double)); | ^ -
call_tri.c:26:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 26 | double* yv = gv_calloc(n, sizeof(double)); | ^ -
compute_hierarchy.c:65:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 65 | y = gv_calloc(n, sizeof(double)); | ^ -
compute_hierarchy.c:73:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 73 | *orderingp = ordering = gv_calloc(n, sizeof(int)); | ^ -
multispline.c:281:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 281 | if (w.x == v.x && w.y == v.y) { | ^~ -
multispline.c:281:31: 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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 311 | pointf *ps = gv_calloc(mult, sizeof(pointf)); | ^~~~ -
multispline.c:442:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 442 | int *tris = gv_calloc(3 * sf->nfaces, sizeof(int)); | ~~^~~~~~~~~~~~ -
multispline.c:443:44: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 443 | memcpy(tris, sf->faces, 3 * sf->nfaces * sizeof(int)); | ^ -
multispline.c:484:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 484 | g->edges = gv_recalloc(g->edges, g->nedges, g->nedges + 1, | ~^~~~~~~~ -
multispline.c:484:59: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 484 | g->edges = gv_recalloc(g->edges, g->nedges, g->nedges + 1, | ~~~~~~~~~~^~~ -
multispline.c:524:16: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 524 | g.nnodes = sf->nfaces + 2; | ^~ -
multispline.c:565:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 565 | int *obsi = gv_calloc(npoly + 1, sizeof(int)); | ~~~~~~^~~ -
multispline.c:570:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 570 | pointf *pts = gv_calloc(npts, sizeof(pointf)); // all points are stored in pts | ^~~~ -
multispline.c:571:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 571 | int *segs = gv_calloc(2 * npts, sizeof(int)); // indices of points forming segments | ~~^~~~~~ -
multispline.c:604:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 604 | double *x = gv_calloc(npts, sizeof(double)); | ^~~~ -
multispline.c:605:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 605 | double *y = gv_calloc(npts, sizeof(double)); | ^~~~ -
multispline.c:643:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 643 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ -
multispline.c:643:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 643 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ -
../../lib/neatogen/fPQ.h:39:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 39 | pq->pq = gv_calloc(sz + 1, sizeof(PQTYPE)); | ~~~^~~ -
multispline.c:1109:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1109 | int *dad = gv_calloc(n, sizeof(int)); | ^ -
multispline.c:1182:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1182 | PQTYPE *idxs = gv_calloc(pq.pq.PQsize + 1, sizeof(PQTYPE)); | ~~~~~~~~~~~~~^~~ -
multispline.c:1183:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1183 | PQVTYPE *vals = gv_calloc(pq.pq.PQsize + 1, sizeof(PQVTYPE)); | ~~~~~~~~~~~~~^~~ -
delaunay.c:144:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 144 | GVertex **vertices = gv_calloc(npt, sizeof(GVertex *)); | ^~~ -
delaunay.c:145:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 145 | GtsEdge **edges = gv_calloc(nsegs, sizeof(GtsEdge *)); | ^~~~~ -
delaunay.c:266:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 266 | v_data *delaunay = gv_calloc(n, sizeof(v_data)); | ^ -
delaunay.c:277:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 277 | int *edges = gv_calloc(2 * nedges + n, sizeof(int)); | ~~~~~~~~~~~^~~ -
delaunay.c:346:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 346 | edges = gv_calloc(2 * nedges, sizeof(int)); | ~~^~~~~~~~ -
delaunay.c:350:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 350 | int* vs = gv_calloc(n, sizeof(int)); | ^ -
delaunay.c:353:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 353 | int *ip = edges = gv_calloc(2 * nedges, sizeof(int)); | ~~^~~~~~~~ -
delaunay.c:358:48: 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:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 358 | gv_sort(vs, n, sizeof(int), vcmp, x[0] == x[1] /* vertical line? */ ? y : x); | ^ -
delaunay.c:469:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 469 | segs = gv_calloc(2 * nsegs, sizeof(int)); | ~~^~~~~~~ -
delaunay.c:477:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 477 | int *faces = gv_calloc(3 * nfaces, sizeof(int)); | ~~^~~~~~~~ -
delaunay.c:478:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 478 | int *neigh = gv_calloc(3 * nfaces, sizeof(int)); | ~~^~~~~~~~ -
delaunay.c:514:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 514 | statf.faces = gv_calloc(3 * nfaces, sizeof(int)); | ~~^~~~~~~~ -
delaunay.c:600:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 600 | delaunay = gv_calloc(n, sizeof(v_data)); | ^ -
delaunay.c:614:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 614 | delaunay = gv_calloc(n, sizeof(v_data)); | ^ -
../../lib/neatogen/fPQ.h:40:15: warning: array subscript 0 is outside array bounds of 'void[0]' [-Warray-bounds=] 40 | pq->pq[0] = guard; | ~~~~~~~~~~^~~~~~~ -
constrained_majorization_ipsep.c:205:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 205 | const size_t nn = n + opt->clusters.nclusters * 2; | ^ -
constrained_majorization_ipsep.c:212:31: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 212 | for (int j = 0; j < nn - i; j++) { | ^ -
constrained_majorization_ipsep.c:213:23: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 213 | if (i < n && j < n - i) { | ^ -
constrained_majorization_ipsep.c:213:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 213 | if (i < n && j < n - i) { | ^ -
constrained_majorization_ipsep.c:213:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 213 | if (i < n && j < n - i) { | ^ -
constrained_majorization_ipsep.c:238:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 238 | degrees = gv_calloc(n, sizeof(double)); | ^ -
constrained_majorization_ipsep.c:255:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 255 | coords = gv_calloc(dim, sizeof(float *)); | ^~~ -
constrained_majorization_ipsep.c:256:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 256 | f_storage = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
constrained_majorization_ipsep.c:273:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 273 | b = gv_calloc(dim, sizeof(float *)); | ^~~ -
constrained_majorization_ipsep.c:274:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 274 | b[0] = gv_calloc(dim * n, sizeof(float)); | ~~~~^~~ -
constrained_majorization_ipsep.c:279:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 279 | tmp_coords = gv_calloc(n, sizeof(float)); | ^ -
constrained_majorization_ipsep.c:280:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 280 | dist_accumulator = gv_calloc(n, sizeof(float)); | ^ -
constrained_majorization_ipsep.c:293:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 293 | lap1 = gv_calloc(lap_length, sizeof(float)); | ^~~~~~~~~~ -
constrained_majorization_ipsep.c:401:55: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 401 | generateNonoverlapConstraints(cMajEnvHor, nsizeScale, coords, | ^~~~~~~~~~ -
constrained_majorization_ipsep.c:420:55: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 420 | generateNonoverlapConstraints(cMajEnvVrt, nsizeScale, coords, | ^~~~~~~~~~ -
sgd.c:32:25: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 32 | int j = rk_interval(i, rstate); | ^ -
sgd.c:32:13: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 32 | int j = rk_interval(i, rstate); | ^~~~~~~~~~~ -
sgd.c:42:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 42 | assert(ND_id(np) == n_nodes); | ^~ -
sgd.c:114:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 114 | graph->weights[x] = deg_i + deg_j - (2 * intersect); | ^~~~~ -
sgd.c:168:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 168 | term_sgd *terms = gv_calloc(n_terms, sizeof(term_sgd)); | ^~~~~~~ -
sgd.c:200:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 200 | double *const pos = gv_calloc(2 * n, sizeof(double)); | ~~^~~ -
sgd.c:201:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 201 | bool *unfixed = gv_calloc(n, sizeof(bool)); | ^ -
quad_prog_vpsc.c:79:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 79 | place[i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ -
quad_prog_vpsc.c:114:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 114 | if (denominator != 0) | ^~ -
quad_prog_vpsc.c:128:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 128 | place[i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ -
quad_prog_vpsc.c:205:15: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 205 | e->nv = n - e->nldv; | ^ -
quad_prog_vpsc.c:209:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 209 | e->vs = gv_calloc(n, sizeof(Variable*)); | ^ -
quad_prog_vpsc.c:224:34: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 224 | e->gcs = newConstraints(e->gm); | ~^~~~ -
quad_prog_vpsc.c:242:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 242 | if (compute_hierarchy(graph, e->nv, 1e-2, 1e-1, NULL, &ordering, &ls, | ~^~~~ -
quad_prog_vpsc.c:249:61: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 249 | get_num_digcola_constraints(levels, e->ndv + 1) + e->ndv - 1; | ^ -
quad_prog_vpsc.c:250:34: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 250 | e->gcs = newConstraints(e->gm); | ~^~~~ -
quad_prog_vpsc.c:252:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 252 | e->vs = gv_calloc(n + e->ndv, sizeof(Variable*)); | ^ -
quad_prog_vpsc.c:260:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 260 | cvar = n + i; | ^ -
quad_prog_vpsc.c:260:20: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 260 | cvar = n + i; | ^ -
quad_prog_vpsc.c:265:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 265 | cvar = n + i; | ^ -
quad_prog_vpsc.c:265:20: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 265 | cvar = n + i; | ^ -
quad_prog_vpsc.c:282:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 282 | newConstraint(e->vs[n + i], e->vs[n + i + 1], 0); | ^ -
quad_prog_vpsc.c:282:53: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 282 | newConstraint(e->vs[n + i], e->vs[n + i + 1], 0); | ^ -
quad_prog_vpsc.c:288:39: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 288 | e->gcs = newConstraints(e->gm + nConCs); | ~~~~~~^~~~~~~~ -
quad_prog_vpsc.c:308:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 308 | e->vpsc = newIncVPSC(n + e->ndv, e->vs, e->gm, e->gcs); | ^ -
quad_prog_vpsc.c:308:32: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 308 | e->vpsc = newIncVPSC(n + e->ndv, e->vs, e->gm, e->gcs); | ~~^~~~~~~~ -
quad_prog_vpsc.c:308:50: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 308 | e->vpsc = newIncVPSC(n + e->ndv, e->vs, e->gm, e->gcs); | ~^~~~ -
quad_prog_vpsc.c:316:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 316 | e->fArray1 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_vpsc.c:317:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 317 | e->fArray2 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_vpsc.c:318:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 318 | e->fArray3 = gv_calloc(n, sizeof(float)); | ^ -
quad_prog_vpsc.c:539:16: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 539 | e->m = mol; | ^~~ -
quad_prog_vpsc.c:542:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 542 | e->m = mol + e->gm; | ^ -
quad_prog_vpsc.c:543:33: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 543 | e->cs = newConstraints(e->m); | ~^~~ -
quad_prog_vpsc.c:556:42: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 556 | e->vpsc = newIncVPSC(e->nv + e->nldv + e->ndv, e->vs, e->m, e->cs); | ~~~~~~~~~~~~~~~~^~~~~~~~ -
quad_prog_vpsc.c:556:60: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 556 | e->vpsc = newIncVPSC(e->nv + e->nldv + e->ndv, e->vs, e->m, e->cs); | ~^~~ -
quad_prog_vpsc.c:571:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 571 | coords[0][i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ -
quad_prog_vpsc.c:576:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 576 | coords[1][i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ -
quad_prog_vpsc.c:591:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 591 | l[0].nodes = gv_calloc(l[0].num_nodes, sizeof(int)); | ~~~~^~~~~~~~~~ -
quad_prog_vpsc.c:598:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 598 | l[i].nodes = gv_calloc(l[i].num_nodes, sizeof(int)); | ~~~~^~~~~~~~~~ -
quad_prog_vpsc.c:605:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 605 | l[num_divisions].num_nodes = n - level_inds[num_divisions - 1]; | ^ -
quad_prog_vpsc.c:605:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 605 | l[num_divisions].num_nodes = n - level_inds[num_divisions - 1]; | ^ -
quad_prog_vpsc.c:606:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 606 | l[num_divisions].nodes = gv_calloc(l[num_divisions].num_nodes, sizeof(int)); | ~~~~~~~~~~~~~~~~^~~~~~~~~~ -
randomkit.c:85:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 85 | seed = (1812433253UL * (seed ^ (seed >> 30)) + pos + 1) & 0xffffffffUL; | ^ -
spring_electrical.c:210:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 210 | if (!bitarray_get(checked, p)) { | ^ -
spring_electrical.c:211:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 211 | bitarray_set(&checked, p, true); | ^ -
spring_electrical.c:216:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 216 | bitarray_set(&checked, ja[j], true); | ~~^~~ -
spring_electrical.c:222:15: warning: cast from function call of type 'size_t' {aka 'long unsigned int'} to non-matching type 'double' [-Wbad-function-cast] 222 | dist /= (double)LIST_SIZE(&leaves); | ^ -
spring_electrical.c:231:58: warning: cast from function call of type 'size_t' {aka 'long unsigned int'} 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:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 283 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ -
spring_electrical.c:293:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 293 | force = gv_calloc(dim * n, sizeof(double)); | ~~~~^~~ -
spring_electrical.c:421:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 421 | force = gv_calloc(n *dim, sizeof(double)); | ~~^~~~ -
spring_electrical.c:434:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 434 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ -
spring_electrical.c:444:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 444 | f = gv_calloc(dim, sizeof(double)); | ^~~ -
spring_electrical.c:569:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 569 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ -
spring_electrical.c:579:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 579 | f = gv_calloc(dim, sizeof(double)); | ^~~ -
spring_electrical.c:730:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 730 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ -
spring_electrical.c:740:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 740 | f = gv_calloc(dim, sizeof(double)); | ^~~ -
spring_electrical.c:741:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 741 | xold = gv_calloc(dim * n, sizeof(double)); | ~~~~^~~ -
spring_electrical.c:744:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 744 | memcpy(xold, x, sizeof(double)*dim*n); | ^ -
spring_electrical.c:744:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 744 | memcpy(xold, x, sizeof(double)*dim*n); | ^ -
spring_electrical.c:829:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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) { | ^~ -
spring_electrical.c:1053:73: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1053 | SparseMatrix B = SparseMatrix_from_coordinate_arrays(LIST_SIZE(&irn), id, id, | ^~ -
spring_electrical.c:1102:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1102 | double *x2 = gv_calloc(A->m * dim, sizeof(double)); | ^ -
spring_electrical.c:1124:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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); | ^~ -
sfdpinit.c:56:26: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 56 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ^~~~~~~~ -
sfdpinit.c:67:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 67 | double *pos = gv_calloc(Ndim * agnnodes(g), sizeof(double)); | ~~~~~^~~~~~~~~~~~~ -
sfdpinit.c:209:25: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 209 | ctrl->random_seed = seed; | ^~~~ -
sparse_solve.c:45:13: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 45 | diag[0] = m; | ^ -
post_process.c:400:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 400 | if (s == 0) { | ^~ -
post_process.c:529:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 529 | irn = data->irn = gv_calloc(nz, sizeof(int)); | ^~ -
post_process.c:530:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 530 | jcn = data->jcn = gv_calloc(nz, sizeof(int)); | ^~ -
post_process.c:531:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 531 | val = data->val = gv_calloc(nz, sizeof(double)); | ^~ -
post_process.c:533:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 533 | x00 = gv_calloc(m * dim, sizeof(double)); | ^ -
post_process.c:592:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 592 | x0 = calloc(dim * m, sizeof(double)); | ^ -
post_process.c:596:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 596 | memcpy(x0, x, sizeof(double) * dim * m); | ^ -
post_process.c:597:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 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) { | ^~ -
post_process.c:703:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 703 | memcpy(x, y, sizeof(double) * m * dim); | ^ -
post_process.c:967:3: warning: switch missing default case [-Wswitch-default] 967 | switch (ctrl.smoothing) { | ^~~~~~ -
compile.c:1401:19: warning: conversion to 'long long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 1401 | v.integer = strlen(args[0].string); | ^~~~~~ -
compile.c:1460:5: warning: switch missing default case [-Wswitch-default] 1460 | switch (sym->index) { | ^~~~~~ -
compile.c:1704:7: warning: switch missing default case [-Wswitch-default] 1704 | switch (sym->index) { | ^~~~~~ -
compile.c:1859:5: warning: switch missing default case [-Wswitch-default] 1859 | switch (ex->op) { | ^~~~~~ -
compile.c:1908:3: warning: switch missing default case [-Wswitch-default] 1908 | switch (ex->op) { | ^~~~~~ -
compile.c:2096:7: warning: switch missing default case [-Wswitch-default] 2096 | switch (type) { | ^~~~~~ -
../../lib/cgraph/cgraph.h:220:19: warning: conversion to 'long long int' from 'IDTYPE' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 220 | #define AGID(obj) (AGTAG(obj).id) | ^ -
actions.c:270:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 270 | edgepair_t *data = gv_calloc(agnedges(src), sizeof(edgepair_t)); | ^~~~~~~~~~~~~ -
gvpr.c:85:24: warning: conversion from 'clock_t' {aka 'long int'} to 'double' may change value [-Wconversion] 85 | return (end - start) / (double)CLOCKS_PER_SEC; | ^ -
gxl2gv.c:190:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 190 | N = agnode(G, (char *) name, 1); | ^ -
gxl2gv.c:199:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 199 | tailNode = agnode(G, (char *) tail, 1); | ^ -
gxl2gv.c:200:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 200 | headNode = agnode(G, (char *) head, 1); | ^ -
gxl2gv.c:393:28: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 393 | g = agopen((char *) id, Agdirected, &AgDefaultDisc); | ^ -
gxl2gv.c:395:28: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 395 | g = agopen((char *) id, Agundirected, &AgDefaultDisc); | ^ -
gxl2gv.c:400:28: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 400 | g = agopen((char *) id, Agdirected, &AgDefaultDisc); | ^ -
gxl2gv.c:410:30: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 410 | subg = agsubg(G, (char *) id, 1); | ^ -
gxl2gv.c:416:39: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 416 | setGraphAttr(G, GXL_ROLE, (char *) atts[pos], ud); | ^ -
gxl2gv.c:421:40: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 421 | setGraphAttr(G, GXL_HYPER, (char *) atts[pos], ud); | ^ -
gxl2gv.c:514:31: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 514 | setAttr(GXL_TYPE, (char *) atts[pos], ud, false); | ^ -
ccomps.c:218:19: warning: unsigned conversion from 'int' to 'char' changes value from '-1' to '255' [-Wsign-conversion] 218 | Node_mark(np) = -1; | ^ -
graphml2gv.c:159:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 159 | return agnode(G, (char *)name, 1); | ^ -
graphml2gv.c:167:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 167 | tailNode = agnode(G, (char *) tail, 1); | ^ -
graphml2gv.c:168:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 168 | headNode = agnode(G, (char *) head, 1); | ^ -
graphml2gv.c:250:24: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 250 | g = agopen((char *) id, dir, &AgDefaultDisc); | ^ -
graphml2gv.c:259:30: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 259 | subg = agsubg(G, (char *) id, 1); | ^ -
gmlscan.c:1433:8: warning: switch missing default case [-Wswitch-default] 1433 | | ^ -
gmlscan.c:1594:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1594 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), | ^~~~~~~~~~~ -
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: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 362 | *T = gv_calloc(ntri, sizeof(struct Triangle)); | ^~~~ -
make_map.c:471:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 471 | int *mask = gv_calloc(nt, sizeof(int)); | ^~ -
make_map.c:474:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 474 | elist = gv_calloc(nt * edim, sizeof(int)); | ~~~^~~~~~ -
make_map.c:475:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 475 | tlist = gv_calloc(nt * 2, sizeof(int)); | ~~~^~~ -
make_map.c:642:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 642 | cycle = gv_calloc(ne * 2, sizeof(int)); | ~~~^~~ -
make_map.c:646:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 646 | edge_cycle_map = gv_calloc(ne, sizeof(int)); | ^~ -
make_map.c:647:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 647 | emask = gv_calloc(ne, sizeof(int)); | ^~ -
make_map.c:654:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 654 | elist = gv_calloc(nt * 3, sizeof(int)); | ~~~^~~ -
make_map.c:844:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 844 | groups = gv_calloc(n + nrandom, sizeof(int)); | ~~^~~~~~~~~ -
make_map.c:876:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 876 | *x_poly = gv_calloc(dim * nt, sizeof(double)); | ~~~~^~~~ -
make_map.c:969:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 969 | y = gv_calloc(dim * n + dim * nz * np, sizeof(double)); | ~~~~~~~~^~~~~~~~~~~~~~~ -
make_map.c:971:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 971 | grouping = gv_calloc(n + nz * np, sizeof(int)); | ~~^~~~~~~~~ -
make_map.c:1030:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1030 | nrandom = fmax(n1, n2); | ^~~~ -
make_map.c:1033:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1033 | xran = gv_calloc((nrandom + 4) * dim2, sizeof(double)); | ~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1038:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1038 | int *grouping2 = gv_calloc(n + nrandom, sizeof(int)); | ~~^~~~~~~~~ -
make_map.c:1039:48: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1039 | memcpy(grouping2, grouping, sizeof(int)*n); | ^ -
make_map.c:1042:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1042 | grouping = gv_recalloc(grouping, n, n + nrandom, sizeof(int)); | ^ -
make_map.c:1042:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1042 | grouping = gv_recalloc(grouping, n, n + nrandom, sizeof(int)); | ~~^~~~~~~~~ -
make_map.c:1073:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1073 | xran = gv_calloc(4 * dim2, sizeof(double)); | ~~^~~~~~ -
make_map.c:1094:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1094 | xcombined = gv_calloc((nn + nrandom) * dim2, sizeof(double)); | ~~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1096:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1096 | xcombined = gv_calloc((n + nrandom) * dim2, sizeof(double)); | ~~~~~~~~~~~~~~^~~~~~ -
make_map.c:1171:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1171 | *x = gv_recalloc(*x, 2 * old_nmax, 2 * *nmax, sizeof(double)); | ~~^~~~~~~~~~ -
make_map.c:1171:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1171 | *x = gv_recalloc(*x, 2 * old_nmax, 2 * *nmax, sizeof(double)); | ~~^~~~~~~ -
make_map.c:1172:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1172 | *groups = gv_recalloc(*groups, old_nmax, *nmax, sizeof(int)); | ^~~~~~~~ -
make_map.c:1172:46: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1172 | *groups = gv_recalloc(*groups, old_nmax, *nmax, sizeof(int)); | ^~~~~ -
make_map.c:1300:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1300 | X = gv_calloc(dim * (n + nmax), sizeof(double)); | ~~~~^~~~~~~~~~~~ -
make_map.c:1301:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-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){ | ^~ -
power.c:55:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 55 | double *eigv = gv_calloc(n, sizeof(double)); | ^ -
power.c:57:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 57 | vv = gv_calloc(n, sizeof(double)); | ^ -
power.c:58:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 58 | u = gv_calloc(n, sizeof(double)); | ^