diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-11-02 17:44:04 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-11-02 17:44:04 +0100 |
commit | b9b32cb28a68e72eea39080c16db142996fc8dac (patch) | |
tree | 7600fce95bd8c46e9eaaee43dcc7fcdf3a6de0bc /drivers/video | |
parent | 106ac0436290a98ecc5e3dfc75d0d7f104ef0ff4 (diff) |
video: tegra: dc: fix size optimised nvhdcp build using gcc 4.7.2
With our default gcc 4.7.2 toolchain from oe building nvhdcp with
activated CONFIG_CC_OPTIMIZE_FOR_SIZE fails as follows:
/linux-toradex.git/drivers/video/tegra/dc/nvhdcp.c: In function
'nvhdcp_downstream_worker':
/linux-toradex.git/drivers/video/tegra/dc/nvhdcp.c:807:3: error:
'b_status' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
/linux-toradex.git/drivers/video/tegra/dc/nvhdcp.c:763:6: note:
'b_status' was declared here
make[5]: *** [drivers/video/tegra/dc/nvhdcp.o] Error 1
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/dc/nvhdcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/nvhdcp.c b/drivers/video/tegra/dc/nvhdcp.c index 3566e2bd33b5..8489ebf69719 100644 --- a/drivers/video/tegra/dc/nvhdcp.c +++ b/drivers/video/tegra/dc/nvhdcp.c @@ -760,7 +760,7 @@ static int get_repeater_info(struct tegra_nvhdcp *nvhdcp) { int e, retries; u8 b_caps; - u16 b_status; + u16 b_status = 0; nvhdcp_vdbg("repeater found:fetching repeater info\n"); |