Fix warning and SDL_generate upd8