diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-04-22 19:54:52 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-04-22 19:54:52 +0200 |
| commit | 31941d9f3b2a665317503166785a3eb6cef35a9c (patch) | |
| tree | c0740c7c14689593ff405d62f3111f9c326cc2d0 /src/client | |
| parent | f760a8c01827d97affff6acc0ec666b30e26395f (diff) | |
fix _all_ warnings // used macro UNUSET
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/interface.c | 3 | ||||
| -rw-r--r-- | src/client/saveLoad.c | 12 | ||||
| -rw-r--r-- | src/client/term.c | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/src/client/interface.c b/src/client/interface.c index ab374b5..52c368b 100644 --- a/src/client/interface.c +++ b/src/client/interface.c @@ -38,6 +38,9 @@ bool_t interface_is_inicialized() static Uint32 TimerCallback(Uint32 interval, void *param) { SDL_Event event; + + UNUSET(param); + event.type = SDL_USEREVENT; event.user.code = USR_EVT_TIMER; event.user.data1 = NULL; diff --git a/src/client/saveLoad.c b/src/client/saveLoad.c index 57661e6..5d1685a 100644 --- a/src/client/saveLoad.c +++ b/src/client/saveLoad.c @@ -23,6 +23,8 @@ static void action_saveTux(space_t * space, tux_t * tux, textFile_t * textFile) { char str[STR_PROTO_SIZE]; + UNUSET(space); + snprintf(str, STR_PROTO_SIZE, "TUX %d %d %d %d %d %d %d %d %s %d %d %d %d %d %d %d %d %d %d %d", tux->id, tux->x, tux->y, tux->status, tux->position, @@ -35,11 +37,12 @@ static void action_saveTux(space_t * space, tux_t * tux, textFile_t * textFile) list_add(textFile->text, strdup(str)); } -static void -action_saveShot(space_t * space, shot_t * shot, textFile_t * textFile) +static void action_saveShot(space_t * space, shot_t * shot, textFile_t * textFile) { char str[STR_PROTO_SIZE]; + UNUSET(space); + snprintf(str, STR_PROTO_SIZE, "SHOT %d %d %d %d %d %d %d %d %d", shot->id, shot->x, shot->y, shot->px, shot->py, shot->position, shot->gun, shot->author_id, @@ -48,11 +51,12 @@ action_saveShot(space_t * space, shot_t * shot, textFile_t * textFile) list_add(textFile->text, strdup(str)); } -static void -action_saveItem(space_t * space, item_t * item, textFile_t * textFile) +static void action_saveItem(space_t * space, item_t * item, textFile_t * textFile) { char str[STR_PROTO_SIZE]; + UNUSET(space); + snprintf(str, STR_PROTO_SIZE, "ITEM %d %d %d %d %d %d %d", item->id, item->type, item->x, item->y, item->count, item->frame, item->author_id); diff --git a/src/client/term.c b/src/client/term.c index 7cfb346..50a7580 100644 --- a/src/client/term.c +++ b/src/client/term.c @@ -77,6 +77,9 @@ static void action_refreshTerm(space_t * space, tux_t * tux, void *p) { char str[STR_SIZE]; + UNUSET(space); + UNUSET(p); + sprintf(str, "name: %s " "score: %d " |