diff options
author | Inki Dae <inki.dae@samsung.com> | 2017-09-12 12:01:35 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-09-12 03:06:13 +0000 |
commit | 22efc32fc5d9893fc5a5b7fe9c3e62b113178643 (patch) | |
tree | 795cbe514081c39a2e71e36ba40f078eb44b80a7 | |
parent | e100c7ba413eb71f790e427c90b5c4195d9b5ea4 (diff) | |
download | libdrm-22efc32fc5d9893fc5a5b7fe9c3e62b113178643.tar.gz libdrm-22efc32fc5d9893fc5a5b7fe9c3e62b113178643.tar.bz2 libdrm-22efc32fc5d9893fc5a5b7fe9c3e62b113178643.zip |
exynos: fix build warningssubmit/tizen_4.0/20170918.005325submit/tizen/20170918.005329accepted/tizen/unified/20170920.065520accepted/tizen/4.0/unified/20170920.081144
Fix build warnings to exynos_fimg2d module.
This patch fixes below two build warnings,
exynos_fimg2d.c: In function 'g2d_scale_and_blend':
exynos_fimg2d.c:978:3: warning: 'scale_y' may be used uninitialized in this function [-Wmaybe-uninitialized]
g2d_add_cmd(ctx, SRC_YSCALE_REG, scale_y);
^
exynos_fimg2d.c:977:3: warning: 'scale_x' may be used uninitialized in this function [-Wmaybe-uninitialized]
g2d_add_cmd(ctx, SRC_XSCALE_REG, scale_x);
Change-Id: I70908088c61b85570aec6e3ec19b405df4820d37
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | exynos/exynos_fimg2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c index 61340c36..ea1a49d8 100644 --- a/exynos/exynos_fimg2d.c +++ b/exynos/exynos_fimg2d.c @@ -904,7 +904,7 @@ g2d_scale_and_blend(struct g2d_context *ctx, struct g2d_image *src, union g2d_bitblt_cmd_val bitblt; union g2d_blend_func_val blend; unsigned int scale, gem_space; - unsigned int scale_x, scale_y; + unsigned int scale_x = 0, scale_y = 0; if (src_w == dst_w && src_h == dst_h) scale = 0; |