3aa934c99d7ce21128bebdf2d3b9055922901ec4 hiram Sat Jan 5 15:38:11 2019 -0800 mostly minor cosmetic fixups to satisify gcc-7 warnings no redmine diff --git src/hg/lib/wigDataStream.c src/hg/lib/wigDataStream.c index 890d802..4187116 100644 --- src/hg/lib/wigDataStream.c +++ src/hg/lib/wigDataStream.c @@ -467,45 +467,49 @@ char *dateStamp = dateTimeStamp(); if (wds->db) fprintf (fh, "#\tdb: '%s', track: '%s', output date: %s UTC\n", wds->db, wds->tblName, dateStamp); if (wds->isFile) fprintf (fh, "#\tfrom file input, output date: %s UTC\n", dateStamp); freeMem(dateStamp); } static void showResolution(double resolution, FILE *fh) { if (resolution > 0.0) + { fprintf (fh, "#\tThis data has been compressed with a minor " "loss in resolution.\n" ); fprintf (fh, "#\t(Worst case: %g) The original source data\n", resolution); fprintf (fh, "#\t(before querying and compression) is available at \n" "#\t\thttp://hgdownload.soe.ucsc.edu/downloads.html\n"); } +} static void showResolutionNoDownloads(double resolution, FILE *fh) { if (resolution > 0.0) + { fprintf (fh, "#\tThis data has been compressed with a minor " "loss in resolution.\n" ); fprintf (fh, "#\t(Worst case: %g)\n", resolution); } +} static void showConstraints(struct wiggleDataStream *wds, FILE *fh) { if (wds->chrName) fprintf (fh, "#\tchrom specified: %s\n", wds->chrName); if (wds->spanLimit) fprintf (fh, "#\tspan specified: %u\n", wds->spanLimit); if (wds->winEnd) fprintf (fh, "#\tposition specified: %d-%d\n", BASE_1(wds->winStart), wds->winEnd); if (wds->bedConstrained && !wds->chrName) fprintf (fh, "#\tconstrained by chr names and coordinates in bed list\n"); else if (wds->bedConstrained) fprintf (fh, "#\tconstrained by coordinates in bed list\n"); wigPrintDataConstraint(wds, fh);