Fix -Wuninitialized warning regarding zero-length var-args ctl element.

( this isn't really an error, but I think it is important to fix the
    warning ).
This commit is contained in:
Matthew Dillon 1998-12-14 05:37:37 +00:00
parent c5a8ae50dd
commit f7bb75c92a
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94
* $Id: ufs_disksubr.c,v 1.37 1998/10/16 10:14:21 jkh Exp $
* $Id: ufs_disksubr.c,v 1.38 1998/10/17 07:49:04 bde Exp $
*/
#include <sys/param.h>
@ -371,7 +371,7 @@ diskerr(bp, dname, what, pri, blkdone, lp)
daddr_t sn;
if (pri != LOG_PRINTF) {
log(pri, "");
log(pri, "%s", "");
pr = addlog;
} else
pr = printf;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94
* $Id: ufs_disksubr.c,v 1.37 1998/10/16 10:14:21 jkh Exp $
* $Id: ufs_disksubr.c,v 1.38 1998/10/17 07:49:04 bde Exp $
*/
#include <sys/param.h>
@ -371,7 +371,7 @@ diskerr(bp, dname, what, pri, blkdone, lp)
daddr_t sn;
if (pri != LOG_PRINTF) {
log(pri, "");
log(pri, "%s", "");
pr = addlog;
} else
pr = printf;