summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-12 00:19:33 +0000
committereivind <eivind@FreeBSD.org>1999-01-12 00:19:33 +0000
commitcbd074fa1fba591786a07f3f9cf8ba28aea61a2a (patch)
tree49d317e2ca5c9cd2a4bf9118058840679cc736ce /sys/i386
parent1005b34c8c5d74300ad3cbe6ac99d5f421f325f9 (diff)
downloadFreeBSD-src-cbd074fa1fba591786a07f3f9cf8ba28aea61a2a.zip
FreeBSD-src-cbd074fa1fba591786a07f3f9cf8ba28aea61a2a.tar.gz
Silence warnings.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mp_machdep.c6
-rw-r--r--sys/i386/i386/mptable.c6
-rw-r--r--sys/i386/i386/perfmon.c4
-rw-r--r--sys/i386/i386/userconfig.c6
-rw-r--r--sys/i386/include/mptable.h6
5 files changed, 16 insertions, 12 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index 17e6945..dd9f144 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.85 1998/11/26 23:14:23 tegge Exp $
+ * $Id: mp_machdep.c,v 1.86 1998/12/07 21:58:18 archie Exp $
*/
#include "opt_smp.h"
@@ -1009,8 +1009,8 @@ fix_mp_table(void)
{
int x;
int id;
- int bus_0;
- int bus_pci;
+ int bus_0 = 0; /* Stop GCC warning */
+ int bus_pci = 0; /* Stop GCC warning */
int num_pci_bus;
/*
diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c
index 17e6945..dd9f144 100644
--- a/sys/i386/i386/mptable.c
+++ b/sys/i386/i386/mptable.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.85 1998/11/26 23:14:23 tegge Exp $
+ * $Id: mp_machdep.c,v 1.86 1998/12/07 21:58:18 archie Exp $
*/
#include "opt_smp.h"
@@ -1009,8 +1009,8 @@ fix_mp_table(void)
{
int x;
int id;
- int bus_0;
- int bus_pci;
+ int bus_0 = 0; /* Stop GCC warning */
+ int bus_pci = 0; /* Stop GCC warning */
int num_pci_bus;
/*
diff --git a/sys/i386/i386/perfmon.c b/sys/i386/i386/perfmon.c
index d772665..0720c62 100644
--- a/sys/i386/i386/perfmon.c
+++ b/sys/i386/i386/perfmon.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: perfmon.c,v 1.15 1997/12/29 23:36:56 phk Exp $
+ * $Id: perfmon.c,v 1.16 1998/12/07 21:58:18 archie Exp $
*/
#include <sys/param.h>
@@ -41,7 +41,9 @@
static int perfmon_inuse;
static int perfmon_cpuok;
+#ifndef SMP
static int msr_ctl[NPMC];
+#endif
static int msr_pmc[NPMC];
static unsigned int ctl_shadow[NPMC];
static quad_t pmc_shadow[NPMC]; /* used when ctr is stopped on P5 */
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c
index 884b1cb..15c1a93 100644
--- a/sys/i386/i386/userconfig.c
+++ b/sys/i386/i386/userconfig.c
@@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
- ** $Id: userconfig.c,v 1.121 1999/01/08 21:00:26 abial Exp $
+ ** $Id: userconfig.c,v 1.122 1999/01/09 18:12:05 wpaul Exp $
**/
/**
@@ -2516,7 +2516,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: userconfig.c,v 1.121 1999/01/08 21:00:26 abial Exp $
+ * $Id: userconfig.c,v 1.122 1999/01/09 18:12:05 wpaul Exp $
*/
#include "scbus.h"
@@ -2607,10 +2607,12 @@ static CmdParm dev_parms[] = {
{ -1, {} },
};
+#if NPNP > 0
static CmdParm string_arg[] = {
{ PARM_STRING, {} },
{ -1, {} },
};
+#endif
#if NEISA > 0
static CmdParm int_arg[] = {
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h
index 17e6945..dd9f144 100644
--- a/sys/i386/include/mptable.h
+++ b/sys/i386/include/mptable.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.85 1998/11/26 23:14:23 tegge Exp $
+ * $Id: mp_machdep.c,v 1.86 1998/12/07 21:58:18 archie Exp $
*/
#include "opt_smp.h"
@@ -1009,8 +1009,8 @@ fix_mp_table(void)
{
int x;
int id;
- int bus_0;
- int bus_pci;
+ int bus_0 = 0; /* Stop GCC warning */
+ int bus_pci = 0; /* Stop GCC warning */
int num_pci_bus;
/*
OpenPOWER on IntegriCloud