wayland: Fix bug 3814 -Wmissing-field-initializers

This commit is contained in:
Brandon Schaefer
2017-09-29 10:07:37 -07:00
parent aad58c622c
commit e27f12e0da
11 changed files with 409 additions and 28 deletions

View File

@@ -167,6 +167,7 @@ void
SDL_UDEV_Quit(void)
{
SDL_UDEV_CallbackList *item;
printf("We do indeed get here\n");
if (_this == NULL) {
return;

View File

@@ -47,6 +47,7 @@ SDL_LoadObject(const char *sofile)
}
#endif
printf("SOFILE: %s\n", sofile);
handle = dlopen(sofile, RTLD_NOW|RTLD_LOCAL);
loaderror = (char *) dlerror();
if (handle == NULL) {

View File

@@ -177,6 +177,8 @@ static SDL_bool SDL_EGL_HasExtension(_THIS, SDL_EGL_ExtensionType type, const ch
if (egl_extstr != NULL) {
ext_start = egl_extstr;
printf("%s\n", ext_start);
while (*ext_start) {
ext_start = SDL_strstr(ext_start, ext);
if (ext_start == NULL) {

View File

@@ -366,6 +366,10 @@ static const struct wl_pointer_listener pointer_listener = {
pointer_handle_motion,
pointer_handle_button,
pointer_handle_axis,
NULL, /* frame */
NULL, /* axis_source */
NULL, /* axis_stop */
NULL, /* axis_discrete */
};
static void
@@ -428,7 +432,9 @@ static const struct wl_touch_listener touch_listener = {
touch_handler_up,
touch_handler_motion,
touch_handler_frame,
touch_handler_cancel
touch_handler_cancel,
NULL, /* shape */
NULL, /* orientation */
};
static void
@@ -564,6 +570,7 @@ static const struct wl_keyboard_listener keyboard_listener = {
keyboard_handle_leave,
keyboard_handle_key,
keyboard_handle_modifiers,
NULL, /* repeat_info */
};
static void
@@ -608,6 +615,7 @@ seat_handle_capabilities(void *data, struct wl_seat *seat,
static const struct wl_seat_listener seat_listener = {
seat_handle_capabilities,
NULL, /* name */
};
static void

View File

@@ -344,7 +344,8 @@ display_handle_global(void *data, struct wl_registry *registry, uint32_t id,
}
static const struct wl_registry_listener registry_listener = {
display_handle_global
display_handle_global,
NULL, /* global_remove */
};
int