diff options
author | Keith Packard <keithp@neko.keithp.com> | 2007-06-21 20:16:36 +0100 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2007-06-21 20:16:36 +0100 |
commit | d6e46f67ab3af1ad3bfa72acb0efd9fe79dbf1dc (patch) | |
tree | fc57986dc6ab5eaa91c572ec065706ab35d4d1b5 | |
parent | 9d104634cf03bea82d1467f01e577cb8d2e4b554 (diff) |
Eliminate some uninitialized variable warnings
-rw-r--r-- | src/i830_dvo.c | 1 | ||||
-rw-r--r-- | src/i830_video.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_dvo.c b/src/i830_dvo.c index d81e5dd7..dfd39ff4 100644 --- a/src/i830_dvo.c +++ b/src/i830_dvo.c @@ -179,6 +179,7 @@ i830_dvo_mode_set(xf86OutputPtr output, DisplayModePtr mode, switch (dvo_reg) { case DVOA: + default: dvo_srcdim_reg = DVOA_SRCDIM; break; case DVOB: diff --git a/src/i830_video.c b/src/i830_video.c index 43e25bbb..b4f9e746 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -1702,6 +1702,10 @@ i830_covering_crtc (ScrnInfoPtr pScrn, best_crtc = NULL; best_coverage = 0; + crtc_box_ret->x1 = 0; + crtc_box_ret->x2 = 0; + crtc_box_ret->y1 = 0; + crtc_box_ret->y2 = 0; for (c = 0; c < xf86_config->num_crtc; c++) { crtc = xf86_config->crtc[c]; |