$Id$ ------------------------ src/libes/gis: CC-167 cc: WARNING File = cats.c, Line = 1194 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (indexes, ncats, sizeof (int), &cmp); ^ src/libes/gis: CC-167 cc: WARNING File = color_org.c, Line = 78 Argument of type "int (*)(DCELL *, DCELL *)" is incompatible with parameter of type "int (*)(const void *, const void *)". sizeof(DCELL), &double_comp); ^ src/libes/gis: CC-167 cc: WARNING File = histogram.c, Line = 263 Argument of type "int (*)(struct Histogram_list *, struct Histogram_list *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (list, n, sizeof(LIST), &cmp); ^ src/libes/gis: CC-167 cc: WARNING File = histogram.c, Line = 302 Argument of type "int (*)(struct Histogram_list *, struct Histogram_list *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (list, n, sizeof(LIST), &cmp_count); ^ src/libes/gis: CC-167 cc: WARNING File = plot.c, Line = 415 Argument of type "int (*)(struct point *, struct point *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (P, np, sizeof(POINT), &edge_order); ^ src/libes/raster: CC-167 cc: WARNING File = Raster.c, Line = 64 Argument of type "unsigned char *" is incompatible with parameter of type "char *". R_raster_char(num, nrows, withzero, chararray) ; ^ src/libes/vect32/Vlib/: CC-167 cc: WARNING File = poly.c, Line = 473 Argument of type "int (*)(double *, double *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (Intersects->x, Intersects->n_points, sizeof (double), comp_double); ^ Total warnings detected in poly.c: 1 src/display/devices/CELL/: CC-167 cc: WARNING File = polyfill.c, Line = 85 Argument of type "int (*)(struct point *, struct point *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (P, np, sizeof(POINT), edge_order); ^ src/imagery/i.ortho.photo/photo.2image/ CC-167 cc: WARNING File = group.c, Line = 26 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (idx, group.group_ref.nfiles, sizeof(int), cmp); ^ src/imagery/i.ortho.photo/photo.2target/ CC-167 cc: WARNING File = group.c, Line = 27 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (idx, group.group_ref.nfiles, sizeof(int), cmp); ^ src/imagery/i.ortho.photo/photo.rectify/ CC-167 cc: WARNING File = matrix.c, Line = 93 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (row_idx, nrow2, sizeof (IDX), cmp); ^ src/imagery/i.points/ Total warnings detected in main.c: 1 CC-167 cc: WARNING File = group.c, Line = 27 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (idx, group.ref.nfiles, sizeof(int), cmp); ^ src/imagery/i.points3/inter/ CC-167 cc: WARNING File = list_group.c, Line = 57 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (idx, group.ref.nfiles, sizeof(int), cmp); ^ src/imagery/i.rectify2/ CC-167 cc: WARNING File = matrix.c, Line = 90 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (row_idx, nrow2, sizeof (IDX), cmp); ^ src/imagery/i.vpoints/ CC-167 cc: WARNING File = group.c, Line = 26 Argument of type "int (*)(int *, int *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort (idx, group.ref.nfiles, sizeof(int), cmp); ^ src/mapdev/v.cutter CC-167 cc: WARNING File = intersect.c, Line = 117 Argument of type "int (*)(struct foo *, struct foo *)" is incompatible with parameter of type "int (*)(const void *, const void *)". qsort ((char *) a, 4, sizeof (struct foo), compar); ^ ----------------------------------- NOTE: I have removed all further qsort warnings as they can be found with find/grep MN 4/2001 ------------------------------------------------------------------------------------- *** this is the same issue as qsort(), and requires more input as to *** if/how it should be fixed. src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 39 Argument of type "int (*)(char *, int *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". scan_int)) ok = 0; ^ src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 46 Argument of type "int (*)(char *, int *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". scan_int)) ok = 0; ^ src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 53 Argument of type "int (*)(char *, double *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". G_scan_easting)) ok = 0; ^ src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 60 Argument of type "int (*)(char *, double *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". G_scan_northing)) ok = 0; ^ src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 67 Argument of type "int (*)(char *, double *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". G_scan_resolution)) ok = 0; ^ src/raster/r.in.arc/cmd/ CC-167 cc: WARNING File = gethead.c, Line = 79 Argument of type "int (*)(char *, int *, int)" is incompatible with parameter of type "int (*)(char *, void *, int)". scan_res)) ok = 0; ^ *** The next three warnings suggest real errors, but they could be errors *** in the definition of wgp() rather than in its implementation. These *** functions don't have ANSI prototypes, and I have no idea where (or even *** if) they are used. Someone who knows what wgp() is for should check this. *** Glynn Clements src/sites/cdhc/ CC-180 cc: WARNING File = as181.c, Line = 293 The indicated argument is incompatible with the corresponding formal parameter. wext (x, n, ssq, a, n2, eps, w, p, ifault); ^ src/sites/cdhc/ CC-180 cc: WARNING File = as181.c, Line = 293 The indicated argument is incompatible with the corresponding formal parameter. wext (x, n, ssq, a, n2, eps, w, p, ifault); ^ src/sites/cdhc/ CC-180 cc: WARNING File = as181.c, Line = 293 The indicated argument is incompatible with the corresponding formal parameter. wext (x, n, ssq, a, n2, eps, w, p, ifault); ^ *** The following file is in dire need of a MAJOR clean-up. *** It is a file loader, and a large part of it deals with handling *** byte-sex issues. It will fail miserably if sizeof(long) != 4, though. *** Also suffers from gratuitous use of "register", e.g. arrays and function *** parameters being declared "register". *** Glynn Clements src/libes/libimage CC-180 cc: WARNING File = open.c, Line = 255 The indicated argument is incompatible with the corresponding formal parameter. cvtshorts(buffer,12); ^ Total warnings detected in open.c: 1