Remove MacOS compiler warnings for urclock.c

This commit is contained in:
Stefan Rueger 2022-11-12 01:12:31 +00:00
parent b178deef5f
commit e2b69dec75
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 9 additions and 9 deletions

View File

@ -1380,25 +1380,25 @@ vblvecfound:
term_out("%0*lx", 2*ur.idlen, urclockID), first=0; term_out("%0*lx", 2*ur.idlen, urclockID), first=0;
} }
if(ur.showdate || ur.showall) if(ur.showdate || ur.showall)
term_out(" %04d-%02d-%02d %02d.%02d"+first, ur.yyyy, ur.mm, ur.dd, ur.hr, ur.mn), first=0; term_out(&" %04d-%02d-%02d %02d.%02d"[first], ur.yyyy, ur.mm, ur.dd, ur.hr, ur.mn), first=0;
if(ur.showfilename || ur.showall) if(ur.showfilename || ur.showall)
term_out(" %s"+first, *ur.filename? ur.filename: ""), first=0; term_out(&" %s"[first], *ur.filename? ur.filename: ""), first=0;
if(ur.showapp || ur.showall) if(ur.showapp || ur.showall)
term_out(" %s%d"+first, single || *ur.filename? "": "application ", ur.storestart), first=0; term_out(&" %s%d"[first], single || *ur.filename? "": "application ", ur.storestart), first=0;
if(ur.showstore || ur.showall) if(ur.showstore || ur.showall)
term_out(" %s%d"+first, single? "": "store ", ur.storesize), first=0; term_out(&" %s%d"[first], single? "": "store ", ur.storesize), first=0;
if(ur.showmeta || ur.showall) if(ur.showmeta || ur.showall)
term_out(" %s%d"+first, single? "": "meta ", nmeta(ur.mcode, ur.uP.flashsize)), first=0; term_out(&" %s%d"[first], single? "": "meta ", nmeta(ur.mcode, ur.uP.flashsize)), first=0;
if(ur.showboot || ur.showall) if(ur.showboot || ur.showall)
term_out(" %s%d"+first, single? "": "boot ", ur.blstart? flm->size-ur.blstart: 0), first=0; term_out(&" %s%d"[first], single? "": "boot ", ur.blstart? flm->size-ur.blstart: 0), first=0;
if(ur.showversion || ur.showall) if(ur.showversion || ur.showall)
term_out(" %s"+first, ur.desc+(*ur.desc==' ')), first=0; term_out(&" %s"[first], ur.desc+(*ur.desc==' ')), first=0;
if(ur.showvector || ur.showall) { if(ur.showvector || ur.showall) {
int vnum = ur.vbllevel? ur.vblvectornum & 0x7f: 0; int vnum = ur.vbllevel? ur.vblvectornum & 0x7f: 0;
term_out(" vector %d (%s)"+first, vnum, vblvecname(pgm, vnum)), first=0; term_out(&" vector %d (%s)"[first], vnum, vblvecname(pgm, vnum)), first=0;
} }
if(ur.showall || ur.showpart) if(ur.showall || ur.showpart)
term_out(" %s"+first, ur.uP.name); term_out(&" %s"[first], ur.uP.name);
if(!first) { if(!first) {
term_out("\n"); term_out("\n");
exit(0); exit(0);