From: Jaehoon Jeong Date: Tue, 28 Jul 2015 05:01:07 +0000 (+0900) Subject: desktop-shell: remove warnings X-Git-Tag: accepted/tizen/mobile/20151221.050925~34^2~255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df9f54a59b9ad99f12bbdfdc2ac94a18008a4570;p=platform%2Fcore%2Fuifw%2Fpepper.git desktop-shell: remove warnings Change-Id: Ice633c42c993cb51a79f0c1aa50e25f03a07e3a9 --- diff --git a/src/lib/desktop-shell/desktop-shell-internal.h b/src/lib/desktop-shell/desktop-shell-internal.h index 4169620..52ceb0b 100644 --- a/src/lib/desktop-shell/desktop-shell-internal.h +++ b/src/lib/desktop-shell/desktop-shell-internal.h @@ -182,5 +182,42 @@ void shell_surface_set_transient(shell_surface_t *shsurf, pepper_surface_t *parent, int32_t x, int32_t y, uint32_t flags); +void +shell_surface_ack_configure(shell_surface_t *shsurf, uint32_t serial); + +void +shell_surface_set_geometry(shell_surface_t *shsurf, int32_t x, int32_t y, int32_t w, int32_t h); + +void +shell_surface_set_maximized(shell_surface_t *shsurf, pepper_output_t *output); + +void +shell_surface_unset_maximized(shell_surface_t *shsurf); + +void +shell_surface_set_fullscreen(shell_surface_t *shsurf, pepper_output_t *output, + uint32_t method, uint32_t framerate); + +void +shell_surface_unset_fullscreen(shell_surface_t *shsurf); + +void +shell_surface_set_minimized(shell_surface_t *shsurf); + +void +shell_get_output_workarea(desktop_shell_t *shell, pepper_output_t *output, + pixman_rectangle32_t *area); + + pepper_bool_t init_wl_shell(desktop_shell_t *shell); + +void +fini_wl_shell(desktop_shell_t *shell); + +pepper_bool_t +init_xdg_shell(desktop_shell_t *shell); + +void +fini_xdg_shell(desktop_shell_t *shell); + diff --git a/src/lib/desktop-shell/shell-surface.c b/src/lib/desktop-shell/shell-surface.c index 754e2e4..d0f4fbf 100644 --- a/src/lib/desktop-shell/shell-surface.c +++ b/src/lib/desktop-shell/shell-surface.c @@ -544,7 +544,7 @@ shell_surface_set_class(shell_surface_t *shsurf, const char* class_) static void shell_surface_map_toplevel(shell_surface_t *shsurf) { - int32_t x = 0, y = 0, w = 0, h = 0; + int32_t x = 0, y = 0; /* Restore original geometry */ if (shsurf->type == SHELL_SURFACE_TYPE_FULLSCREEN || @@ -688,7 +688,7 @@ shell_surface_center_on_output_by_scale(shell_surface_t *shsurf, static void switch_output_mode(pepper_output_t *output, pepper_output_mode_t *mode) { - pepper_output_mode_t *new_mode; + pepper_output_mode_t *new_mode = NULL;; /* TODO: Find the output mode to the smallest mode that can fit */ @@ -748,7 +748,7 @@ shell_surface_map_fullscreen(shell_surface_t *shsurf) /* TODO: Create background black view */ { - pepper_surface_t *surface; + pepper_surface_t *surface = NULL; /** * surface->x = output_geom->w;