src/hg/makeDb/hgLoadMaf/hgLoadMafSummary.c 1.20
1.20 2009/09/23 18:42:22 angie
Fixed compiler warnings from gcc 4.3.3, mostly about system calls whose return values weren't checked and non-literal format strings with no args.
Index: src/hg/makeDb/hgLoadMaf/hgLoadMafSummary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/makeDb/hgLoadMaf/hgLoadMafSummary.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -b -B -U 4 -r1.19 -r1.20
--- src/hg/makeDb/hgLoadMaf/hgLoadMafSummary.c 1 Dec 2008 21:11:27 -0000 1.19
+++ src/hg/makeDb/hgLoadMaf/hgLoadMafSummary.c 23 Sep 2009 18:42:22 -0000 1.20
@@ -105,15 +105,13 @@
struct mafComp *mafMaster(struct mafAli *maf, struct mafFile *mf,
char *fileName)
/* Get master component from maf. Error abort if no master component */
{
-char msg[256];
struct mafComp *mcMaster = mafMayFindCompPrefix(maf, database, ".");
if (mcMaster == NULL)
{
- safef(msg, sizeof(msg), "Couldn't find %s. sequence line %d of %s\n",
+ errAbort("Couldn't find %s. sequence line %d of %s\n",
database, mf->lf->lineIx, fileName);
- errAbort(msg);
}
return mcMaster;
}