Fix warnings.

SVN revision: 26973
This commit is contained in:
Kim Woelders 2006-11-05 15:22:47 +00:00
parent bb3f3b8d83
commit fe390d060e
4 changed files with 12 additions and 3 deletions

View File

@ -110,6 +110,7 @@ EAPI void ecore_evas_xrender_x11_extra_event_window_add(Ecore_Evas *e
EAPI Ecore_Evas *ecore_evas_fb_new(char *disp_name, int rotation, int w, int h);
EAPI Ecore_Evas *ecore_evas_directfb_new(const char *disp_name, int windowed, int x, int y, int w, int h);
EAPI Ecore_DirectFB_Window *ecore_evas_directfb_window_get(Ecore_Evas *ee);
EAPI Ecore_Evas *ecore_evas_buffer_new(int w, int h);
EAPI const int *ecore_evas_buffer_pixels_get(Ecore_Evas *ee);

View File

@ -549,6 +549,7 @@ ecore_evas_directfb_window_get(Ecore_Evas *ee)
#ifdef BUILD_ECORE_EVAS_DIRECTFB
return ee->engine.directfb.window;
#else
ee = NULL;
return NULL;
#endif
}
@ -610,6 +611,8 @@ ecore_evas_directfb_new(const char *disp_name, int windowed, int x, int y, int w
return ee;
#else
disp_name = NULL;
windowed = x = y = w = h = 0;
return NULL;
#endif
}

View File

@ -637,6 +637,8 @@ ecore_evas_fb_new(char *disp_name, int rotation, int w, int h)
ecore_evases = _ecore_list2_prepend(ecore_evases, ee);
return ee;
#else
disp_name = NULL;
rotation = w = h = 0;
return NULL;
#endif
}

View File

@ -2148,7 +2148,7 @@ ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent,
/* NB: on linux this may simply empty the env as opposed to completely
* unset it to being empty - unsure as solartis libc crashes looking
* for the '=' char */
putenv("DESKTOP_STARTUP_ID=");
putenv((char*)"DESKTOP_STARTUP_ID=");
}
einfo = (Evas_Engine_Info_Software_X11 *)evas_engine_info_get(ee->evas);
if (einfo)
@ -2398,7 +2398,7 @@ ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent,
/* NB: on linux this may simply empty the env as opposed to completely
* unset it to being empty - unsure as solartis libc crashes looking
* for the '=' char */
putenv("DESKTOP_STARTUP_ID=");
putenv((char*)"DESKTOP_STARTUP_ID=");
}
evas_key_modifier_add(ee->evas, "Shift");
evas_key_modifier_add(ee->evas, "Control");
@ -2414,6 +2414,9 @@ ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent,
ecore_evases_hash = evas_hash_add(ecore_evases_hash, _ecore_evas_x_winid_str_get(ee->engine.x.win), ee);
return ee;
#else
disp_name = NULL;
parent = 0;
x = y = w = h = 0;
return NULL;
#endif
}
@ -2548,7 +2551,7 @@ ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent,
/* NB: on linux this may simply empty the env as opposed to completely
* unset it to being empty - unsure as solartis libc crashes looking
* for the '=' char */
putenv("DESKTOP_STARTUP_ID=");
putenv((char*)"DESKTOP_STARTUP_ID=");
}
einfo = (Evas_Engine_Info_XRender_X11 *)evas_engine_info_get(ee->evas);
if (einfo)