1
0
Fork 0

Fix some Clang warnings.

This commit is contained in:
James Turner 2014-03-11 16:46:00 +00:00
parent 1edffd1d10
commit f2a3090384
2 changed files with 1 additions and 6 deletions

View file

@ -149,7 +149,7 @@ void guiErrorMessage (const char *txt, const sg_throwable &throwable)
string msg = txt; string msg = txt;
msg += '\n'; msg += '\n';
msg += throwable.getFormattedMessage(); msg += throwable.getFormattedMessage();
if (!std::strlen(throwable.getOrigin()) != 0) { if (std::strlen(throwable.getOrigin()) != 0) {
msg += "\n (reported by "; msg += "\n (reported by ";
msg += throwable.getOrigin(); msg += throwable.getOrigin();
msg += ')'; msg += ')';

View file

@ -53,11 +53,6 @@ using namespace std;
#define MAX_PACKET_SIZE 1200 #define MAX_PACKET_SIZE 1200
#define MAX_TEXT_SIZE 128 #define MAX_TEXT_SIZE 128
// These constants are provided so that the ident
// command can list file versions
const char sMULTIPLAYMGR_BID[] = "$Id$";
const char sMULTIPLAYMGR_HID[] = MULTIPLAYTXMGR_HID;
struct IdPropertyList { struct IdPropertyList {
unsigned id; unsigned id;
const char* name; const char* name;