Avoid some compilation warnings and errors with gcc on linux.

This commit is contained in:
David Capello 2010-07-23 16:51:11 -03:00
parent f323f41288
commit 712e357ab2
3 changed files with 3 additions and 2 deletions

View File

@ -162,5 +162,5 @@ void user_printf(const char *format, ...)
uvsprintf(buf, format, ap); uvsprintf(buf, format, ap);
va_end(ap); va_end(ap);
allegro_message(buf); allegro_message("%s", buf);
} }

View File

@ -72,7 +72,7 @@ int vaca_main()
e.show(); e.show();
} }
catch (std::exception& e) { catch (std::exception& e) {
allegro_message(e.what()); allegro_message("%s", e.what());
} }
#ifndef DEBUGMODE #ifndef DEBUGMODE
catch (...) { catch (...) {

View File

@ -19,6 +19,7 @@
#include "config.h" #include "config.h"
#include <allegro.h> #include <allegro.h>
#include <cstdio>
#include "resource_finder.h" #include "resource_finder.h"