92ce3fbdf5f0fc84276a04adf87e1e4a0de5a4bc angie Fri Dec 17 12:26:29 2010 -0800 Resolved compilation warnings from gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9),mostly by folding unnecessary safef's into hgHistoryComment which takes varargs (pragma recently added by MarkD meant newly detected lack of format strings). diff --git src/hg/dbTrash/dbTrash.c src/hg/dbTrash/dbTrash.c index 9b37531..1495984 100644 --- src/hg/dbTrash/dbTrash.c +++ src/hg/dbTrash/dbTrash.c @@ -252,31 +252,31 @@ { sqlDisconnect(&conn); conn = sqlConnect(db); } for (el = tableNames; el != NULL; el = el->next) { verbose(2,"# drop %s\n", el->name); sqlDropTable(conn, el->name); ctTouchLastUse(conn, el->name, FALSE); /* removes metaInfo row */ ++droppedCount; } /* add a comment to the history table and finish up connection */ safef(comment, sizeof(comment), "Dropped %d tables with total size %llu", droppedCount, totalSize); verbose(2,"# %s\n", comment); - hgHistoryComment(conn, comment); + hgHistoryComment(conn, "%s", comment); } } sqlDisconnect(&conn); } int main(int argc, char *argv[]) /* Process command line. */ { struct tm *tm; if (argc < 2) usage(); optionInit(&argc, argv, options); if (!optionExists("age"))