summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-05-02 15:23:14 -0700
committerAaron Plattner <aplattner@nvidia.com>2007-05-02 15:23:14 -0700
commitc511debc07e96e66335cfa82f1db8207ff5bb690 (patch)
tree3c239380f74441eaadc18e0a4672c14be6c066aa
parent100d7c7393eda92e5b26ac4f4cc33a8dce86c364 (diff)
Fix some harmless warnings.
-rw-r--r--src/nv_hw.c2
-rw-r--r--src/nv_setup.c2
-rw-r--r--src/riva_hw.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nv_hw.c b/src/nv_hw.c
index d7a0c19..a221d11 100644
--- a/src/nv_hw.c
+++ b/src/nv_hw.c
@@ -844,7 +844,7 @@ void NVCalcStateExt (
int flags
)
{
- int pixelDepth, VClk;
+ int pixelDepth, VClk = 0;
/*
* Save mode parameters.
*/
diff --git a/src/nv_setup.c b/src/nv_setup.c
index 4009fde..71d7955 100644
--- a/src/nv_setup.c
+++ b/src/nv_setup.c
@@ -174,7 +174,7 @@ NVIsConnected (ScrnInfoPtr pScrn, int output)
{
NVPtr pNv = NVPTR(pScrn);
volatile U032 *PRAMDAC = pNv->PRAMDAC0;
- CARD32 reg52C, reg608, dac0_reg608;
+ CARD32 reg52C, reg608, dac0_reg608 = 0;
Bool present;
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
diff --git a/src/riva_hw.c b/src/riva_hw.c
index 1b89264..15bef0e 100644
--- a/src/riva_hw.c
+++ b/src/riva_hw.c
@@ -659,7 +659,7 @@ static void CalcStateExt
int flags
)
{
- int pixelDepth, VClk, m, n, p;
+ int pixelDepth, VClk = 0, m = 0, n = 0, p = 0;
/*
* Save mode parameters.
*/