From af7468ba36cde18612471532047afbf3143a39e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Wed, 20 Jun 2007 18:14:45 +0200 Subject: Fixed compiler warnings with gcc-4.1.2 --- game.c | 6 +++--- history.h | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/game.c b/game.c index 3e59ea5..19c8959 100644 --- a/game.c +++ b/game.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: game.c 22 2006-04-24 23:26:30Z tom $ + * $Id: game.c 85 2007-06-20 16:14:45Z tom $ */ #include "game.h" @@ -82,8 +82,8 @@ void SpiderGame::Show() osd = cOsdProvider::NewOsd(0, 0); if (osd) { - tArea areas[] = { xPos, yPos, xPos + width - 1, yPos + height - 1, 4 }; - osd->SetAreas(areas, 1); + tArea area = { xPos, yPos, xPos + width - 1, yPos + height - 1, 4 }; + osd->SetAreas(&area, 1); start(); paint(); } diff --git a/history.h b/history.h index 4940d95..515f02b 100644 --- a/history.h +++ b/history.h @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: history.h 2 2005-05-14 22:25:56Z tom $ + * $Id: history.h 85 2007-06-20 16:14:45Z tom $ */ #ifndef VDR_SPIDER_HISTORY_H @@ -60,6 +60,9 @@ class Move { public: + /** Destructor */ + virtual ~Move() {}; + /** Do the move */ virtual void execute() = 0; -- cgit v1.2.3