elm config - fix warnings about unused vars and params
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 4 Dec 2018 08:45:02 +0000 (08:45 +0000)
committerHermet Park <hermetpark@gmail.com>
Wed, 5 Dec 2018 05:54:38 +0000 (14:54 +0900)
src/lib/elementary/elm_config.c

index c30424e..518f791 100644 (file)
@@ -1538,7 +1538,7 @@ _profile_fetch_from_conf(void)
 {
    char buf[PATH_MAX], *p, *s;
    Eet_File *ef = NULL;
-   int len = 0, i;
+   int len = 0;
 
    // if env var - use profile without question
    s = getenv("ELM_PROFILE");
@@ -2303,9 +2303,9 @@ _elm_config_eet_close_error_get(Eet_File *ef,
 static char *
 _elm_config_profile_name_get()
 {
-   char buf[PATH_MAX], *p, *s;
+   char buf[PATH_MAX], *p;
    Eet_File *ef = NULL;
-   int len = 0, i;
+   int len = 0;
    char *rst = NULL;
 
    _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
@@ -4623,12 +4623,11 @@ _config_change_delay_cb(void *data EINA_UNUSED)
 
 static Eina_Bool
 _elm_config_file_monitor_cb(void *data EINA_UNUSED,
-                            int type,
+                            int type EINA_UNUSED,
                             void *event)
 {
    Eio_Monitor_Event *ev = event;
    const char *file = ecore_file_file_get(ev->filename);
-   char buf[PATH_MAX];
 
    if (ev->monitor == _eio_config_monitor)
      {