Commit c7f81eb3 authored by Sam Lantinga's avatar Sam Lantinga

Fixed compile warning

parent f4c7de6b
...@@ -254,8 +254,6 @@ SDL_SYS_HapticName(int index) ...@@ -254,8 +254,6 @@ SDL_SYS_HapticName(int index)
static int static int
SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd) SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd)
{ {
const char *name;
/* Allocate the hwdata */ /* Allocate the hwdata */
haptic->hwdata = (struct haptic_hwdata *) haptic->hwdata = (struct haptic_hwdata *)
SDL_malloc(sizeof(*haptic->hwdata)); SDL_malloc(sizeof(*haptic->hwdata));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment