diff options
author | Jason Liu <r64343@freescale.com> | 2012-03-27 21:20:27 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-03-27 21:25:11 +0800 |
commit | 46353401a4d42f861bcca6702681ffd3a22acd5e (patch) | |
tree | 4d755efd78279224a1cac20bd92b7bb063303b1a /drivers/media | |
parent | 9329fa1504e395a9e18f72284ad885628f6e91db (diff) |
ENGR00178118-1 fix some build warnings when using GCC 4.6.2
fix some build warnings when using GCC 4.6.2:
drivers/cpufreq/cpufreq_interactive.c:127:6:
warning:'irq_count' may be used uninitialized in this function [-Wuninitialized]
drivers/media/video/mxc/output/mxc_vout.c:1346:5:
warning: 'ret' may be used uninitialized in this function [-Wuninitialized]
drivers/video/mxc/mxc_ipuv3_fb.c:1329:23:
warning: operation on 'mxc_fbi->cur_ipu_buf' may be undefined [-Wsequence-point]
drivers/video/mxc/mxc_ipuv3_fb.c:1376:24:
warning: operation on 'mxc_fbi->cur_ipu_buf' may be undefined [-Wsequence-point]
drivers/video/mxc/mxc_ipuv3_fb.c:1377:24:
warning: operation on 'mxc_fbi->cur_ipu_buf' may be undefined [-Wsequence-point]
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/mxc/output/mxc_vout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c index 2c22ceed9271..43b53678d5ca 100644 --- a/drivers/media/video/mxc/output/mxc_vout.c +++ b/drivers/media/video/mxc/output/mxc_vout.c @@ -1293,7 +1293,7 @@ static int set_window_position(struct mxc_vout_output *vout, struct mxcfb_pos *p { struct fb_info *fbi = vout->fbi; mm_segment_t old_fs; - int ret; + int ret = 0; if (vout->disp_support_windows) { old_fs = get_fs(); |