From 530453376c1cef29b7c099f4e9e8b4e4dbf99db7 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 2 Feb 2006 14:09:48 +0000 Subject: Removing a lot of warnings, as well as a bunch of terrible bugs! --- lib/dvdabstract.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/dvdabstract.cpp') diff --git a/lib/dvdabstract.cpp b/lib/dvdabstract.cpp index 9e2370f..12d33c4 100644 --- a/lib/dvdabstract.cpp +++ b/lib/dvdabstract.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: dvdabstract.cpp,v 1.3 2005-11-13 13:43:22 pixel Exp $ */ +/* $Id: dvdabstract.cpp,v 1.4 2006-02-02 14:09:49 pixel Exp $ */ #include "dvdabstract.h" @@ -34,7 +34,11 @@ off_t dvdabstract::seek(off_t offset, int wheel) throw (GeneralException) { break; case SEEK_END: throw IOGeneral("Can't seek from the end of the dvdabstract..."); + default: + throw IOGeneral("Invalid seek wheel."); } + + return v; } off_t dvdabstract::tell() const { -- cgit v1.2.3