From: James Turner Date: Tue, 11 Mar 2014 16:46:00 +0000 (+0000) Subject: Fix some Clang warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f2a30903848598039ee5d7e23c8ef97403a9f235;p=flightgear.git Fix some Clang warnings. --- diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index 8eeb54e76..b566f5339 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -149,7 +149,7 @@ void guiErrorMessage (const char *txt, const sg_throwable &throwable) string msg = txt; msg += '\n'; msg += throwable.getFormattedMessage(); - if (!std::strlen(throwable.getOrigin()) != 0) { + if (std::strlen(throwable.getOrigin()) != 0) { msg += "\n (reported by "; msg += throwable.getOrigin(); msg += ')'; diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 8ce9b9a12..b3898ac70 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -53,11 +53,6 @@ using namespace std; #define MAX_PACKET_SIZE 1200 #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 { unsigned id; const char* name;