This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository entrance.

View the commit online.

commit 28a41ba51fd5bb19e1c1c52bf93101dbf9087b7e
Author: Alastair Poole <[email protected]>
AuthorDate: Wed Dec 2 05:51:26 2026 +0000

    compositor: fix warnings after buchery.
---
 src/compositor/bin/e_comp.c              |  5 -----
 src/compositor/bin/e_comp_wl.c           |  3 +--
 src/compositor/bin/e_comp_wl_data.c      |  2 --
 src/compositor/bin/e_config.c            |  2 +-
 src/compositor/bin/e_grabinput.c         |  2 +-
 src/compositor/bin/e_module.c            | 16 ----------------
 src/compositor/bin/e_pixmap.c            |  4 +++-
 src/compositor/bin/e_randr2.c            |  4 ++--
 src/greeter/gadgets/modules/clock/face.c |  4 +++-
 9 files changed, 11 insertions(+), 31 deletions(-)

diff --git a/src/compositor/bin/e_comp.c b/src/compositor/bin/e_comp.c
index 45f3e83..a42f2fd 100644
--- a/src/compositor/bin/e_comp.c
+++ b/src/compositor/bin/e_comp.c
@@ -949,7 +949,6 @@ _e_comp_shapes_update_job(void *d EINA_UNUSED)
    Eina_Iterator *ti;
    Eina_Rectangle *exr;
    unsigned int i, tile_count;
-   Ecore_Window win;
    Eina_Rectangle *r;
    Eina_List *rl = NULL;
    Shape_Debug_Color color = {0};
@@ -957,10 +956,6 @@ _e_comp_shapes_update_job(void *d EINA_UNUSED)
 
    SHAPE_INF("---------------------");
 
-   if (e_comp->comp_type == E_PIXMAP_TYPE_X)
-     win = e_comp->win;
-   else
-     win = e_comp->cm_selection;
    E_FREE_LIST(e_comp->debug_rects, evas_object_del);
    tb = eina_tiler_new(e_comp->w, e_comp->h);
    eina_tiler_tile_size_set(tb, 1, 1);
diff --git a/src/compositor/bin/e_comp_wl.c b/src/compositor/bin/e_comp_wl.c
index 74ea2df..50bb180 100644
--- a/src/compositor/bin/e_comp_wl.c
+++ b/src/compositor/bin/e_comp_wl.c
@@ -2506,8 +2506,7 @@ static void
 _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_resource *resource, uint32_t id)
 {
    struct wl_resource *res;
-   E_Client *wc, *ec = NULL;
-   Eina_List *l;
+   E_Client *ec = NULL;
    pid_t pid;
 
    DBG("Compositor Cb Surface Create: %d", id);
diff --git a/src/compositor/bin/e_comp_wl_data.c b/src/compositor/bin/e_comp_wl_data.c
index a4c9601..515c1c4 100644
--- a/src/compositor/bin/e_comp_wl_data.c
+++ b/src/compositor/bin/e_comp_wl_data.c
@@ -873,7 +873,6 @@ e_comp_wl_data_device_keyboard_focus_set(void)
 {
    struct wl_resource *data_device_res, *offer_res = NULL, *focus;
    E_Comp_Wl_Data_Source *source;
-   E_Client *focused;
 
    e_comp_wl_data_primary_selection_update();
 
@@ -888,7 +887,6 @@ e_comp_wl_data_device_keyboard_focus_set(void)
         ERR("No focused resource");
         return;
      }
-   focused = wl_resource_get_user_data(focus);
    source = (E_Comp_Wl_Data_Source *)e_comp_wl->selection.data_source;
 
    data_device_res =
diff --git a/src/compositor/bin/e_config.c b/src/compositor/bin/e_config.c
index 376f750..9ced944 100644
--- a/src/compositor/bin/e_config.c
+++ b/src/compositor/bin/e_config.c
@@ -1135,7 +1135,7 @@ e_config_load(void)
           }
         CONFIG_VERSION_CHECK(14)
           {
-             Eina_List *files, *l;
+             Eina_List *files;
              Eina_Bool fail = EINA_FALSE;
              char buf[PATH_MAX], buf2[PATH_MAX], *f;
 
diff --git a/src/compositor/bin/e_grabinput.c b/src/compositor/bin/e_grabinput.c
index 3cb9fe9..094f30c 100644
--- a/src/compositor/bin/e_grabinput.c
+++ b/src/compositor/bin/e_grabinput.c
@@ -135,7 +135,7 @@ e_grabinput_mouse_win_get(void)
 }
 
 static void
-_e_grabinput_focus_do(Ecore_Window win, E_Focus_Method method)
+_e_grabinput_focus_do(Ecore_Window win EINA_UNUSED, E_Focus_Method method)
 {
    /* L("focus to %x method %i", win, method); */
    switch (method)
diff --git a/src/compositor/bin/e_module.c b/src/compositor/bin/e_module.c
index 4f05564..62680f1 100644
--- a/src/compositor/bin/e_module.c
+++ b/src/compositor/bin/e_module.c
@@ -19,22 +19,6 @@ static Eina_Hash *_e_module_path_hash = NULL;
 
 E_API int E_EVENT_MODULE_UPDATE = 0;
 
-static Eina_Bool
-_module_is_nosave(const char *name)
-{
-   const char *blacklist[] =
-   {
-      "comp",
-      "conf_comp",
-      "xwayland",
-   };
-   unsigned int i;
-
-   for (i = 0; i < EINA_C_ARRAY_LENGTH(blacklist); i++)
-     if (eina_streq(name, blacklist[i])) return EINA_TRUE;
-   return !strncmp(name, "wl_", 3); //block wl_* modules from being saved
-}
-
 static Eina_Bool
 _module_is_important(const char *name)
 {
diff --git a/src/compositor/bin/e_pixmap.c b/src/compositor/bin/e_pixmap.c
index 7dd6e04..e71f9f0 100644
--- a/src/compositor/bin/e_pixmap.c
+++ b/src/compositor/bin/e_pixmap.c
@@ -850,7 +850,9 @@ e_pixmap_image_data_get(E_Pixmap *cp)
 }
 
 E_API Eina_Bool
-e_pixmap_image_data_argb_convert(E_Pixmap *cp, void *pix, void *ipix, Eina_Rectangle *r, int stride)
+e_pixmap_image_data_argb_convert(E_Pixmap *cp, void *pix EINA_UNUSED,
+                                 void *ipix EINA_UNUSED, Eina_Rectangle *r EINA_UNUSED,
+                                 int stride EINA_UNUSED)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(cp, EINA_FALSE);
 
diff --git a/src/compositor/bin/e_randr2.c b/src/compositor/bin/e_randr2.c
index 6521702..9ed6fcc 100644
--- a/src/compositor/bin/e_randr2.c
+++ b/src/compositor/bin/e_randr2.c
@@ -2056,8 +2056,8 @@ _modelist_sort(const void *a, const void *b)
    long long ab = (long long)mb->w * mb->h;
 
    if (aa != ab) return (aa > ab) ? -1 : 1;
-   if (ma->refresh != mb->refresh)
-     return (ma->refresh > mb->refresh) ? -1 : 1;
+   if (ma->refresh > mb->refresh) return -1;
+   if (ma->refresh < mb->refresh) return 1;
 
    /* let the display's own preferred timing break the tie */
    if (ma->preferred != mb->preferred) return ma->preferred ? -1 : 1;
diff --git a/src/greeter/gadgets/modules/clock/face.c b/src/greeter/gadgets/modules/clock/face.c
index bdb9f01..cfe5500 100644
--- a/src/greeter/gadgets/modules/clock/face.c
+++ b/src/greeter/gadgets/modules/clock/face.c
@@ -1,7 +1,9 @@
 // SPDX-License-Identifier: ISC
 // Adapted from Eternity by the Enlightenment Development Team.
 
-#define EFL_BETA_API_SUPPORT
+#ifndef EFL_BETA_API_SUPPORT
+# define EFL_BETA_API_SUPPORT
+#endif
 #include "face.h"
 
 #include <Ecore_Evas.h>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to