By the look of it that 'return' can never be reached.
void cFont::RenderText(string text, bool multi)
{
...
m_Message = 0;
if((m_Message != 0) && (text == ""))
return;
[EDIT] Also I think the next bit of code doesn't work unless / is replaced by \\
bool CSurface::DrawSurface(int x, int y, SDL_Surface* destination, SDL_Rect* clip, bool resize, bool maintainRatio)
{
double scaleX = 0;
double scaleY = 0;
/*
* bit of a kludge to stop buttons with a missing
* disabled image from spamming the log file
*/
if(m_Filename == "./Resources/Buttons/") {
return false;
}