diff --git a/mach/sun2/cv/cv.c b/mach/sun2/cv/cv.c index 0e82f73d1..359958a14 100644 --- a/mach/sun2/cv/cv.c +++ b/mach/sun2/cv/cv.c @@ -138,8 +138,10 @@ main(argc, argv) if (BADMAGIC(outhead)) fatal("Not an ack object file.\n"); if (outhead.oh_flags & HF_LINK) { + if (! unresolved) { + fprintf(stderr,"Warning: contains unresolved references.\n"); + } unresolved++; - fprintf(stderr,"Warning: contains unresolved references.\n"); } else if (outhead.oh_nrelo > 0) fprintf(stderr, "Warning: relocation information present.\n"); diff --git a/mach/sun3/cv/cv.c b/mach/sun3/cv/cv.c index 0e82f73d1..359958a14 100644 --- a/mach/sun3/cv/cv.c +++ b/mach/sun3/cv/cv.c @@ -138,8 +138,10 @@ main(argc, argv) if (BADMAGIC(outhead)) fatal("Not an ack object file.\n"); if (outhead.oh_flags & HF_LINK) { + if (! unresolved) { + fprintf(stderr,"Warning: contains unresolved references.\n"); + } unresolved++; - fprintf(stderr,"Warning: contains unresolved references.\n"); } else if (outhead.oh_nrelo > 0) fprintf(stderr, "Warning: relocation information present.\n");