From 9723f188275df9ec033b2129339fb680f5595c98 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Fri, 28 Aug 2009 11:25:03 +0000 Subject: [PATCH] J : * Fix the last warning and reinstate -Werror on PSP. --- projects/mtg/Makefile | 2 +- projects/mtg/src/SimplePad.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/mtg/Makefile b/projects/mtg/Makefile index 61d92a328..649bd22b8 100644 --- a/projects/mtg/Makefile +++ b/projects/mtg/Makefile @@ -32,7 +32,7 @@ LIBS = -ljge300 -lhgetools -lfreetype -ljpeg -lgif -lpng -lz -lm -lmikmod -lpspp EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = WTH?! PSP_EBOOT_ICON = icon.png -CXXFLAGS = -O2 -G0 -Wall -DDEVHOOK -DPSPFW3XX -fno-exceptions +CXXFLAGS = -O2 -G0 -Wall -Werror -DDEVHOOK -DPSPFW3XX -fno-exceptions INCDIR = ../../JGE/include ../../JGE/include/psp ../../JGE/include/psp/freetype2 ../../JGE/src LIBDIR = ../../JGE/lib/psp else diff --git a/projects/mtg/src/SimplePad.cpp b/projects/mtg/src/SimplePad.cpp index 5060874fa..72c666b4f 100644 --- a/projects/mtg/src/SimplePad.cpp +++ b/projects/mtg/src/SimplePad.cpp @@ -179,7 +179,7 @@ void SimplePad::MoveSelection(unsigned char moveto) if(selected < KPD_MAX && selected >= 0) priorKey = selected; - if(moveto < KPD_MAX && moveto >= 0) { + if(moveto < KPD_MAX) { selected = moveto; } else if(moveto == KPD_INPUT) @@ -407,4 +407,4 @@ unsigned int SimplePad::cursorPos(){ return buffer.size(); return cursor; -} \ No newline at end of file +}