From f7bb75c92a424d5ed621a7f774682c4c4fa19ee7 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 14 Dec 1998 05:37:37 +0000 Subject: [PATCH] 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 ). --- sys/kern/subr_disklabel.c | 4 ++-- sys/ufs/ufs/ufs_disksubr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index 8a2de1498836..33f1d2ac1b68 100644 --- a/sys/kern/subr_disklabel.c +++ b/sys/kern/subr_disklabel.c @@ -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 @@ -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; diff --git a/sys/ufs/ufs/ufs_disksubr.c b/sys/ufs/ufs/ufs_disksubr.c index 8a2de1498836..33f1d2ac1b68 100644 --- a/sys/ufs/ufs/ufs_disksubr.c +++ b/sys/ufs/ufs/ufs_disksubr.c @@ -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 @@ -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;