Re-enable compiler warning C4800 (performance warning)

master
Ansariel 2024-05-30 13:11:50 +02:00
parent 7e645bd42d
commit c082f6f67a
6 changed files with 1 additions and 17 deletions

View File

@ -139,7 +139,6 @@
#endif
#pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation.
#pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning( disable : 4996 ) // warning: deprecated
// Linker optimization with "extern template" generates these warnings

View File

@ -82,8 +82,6 @@ public:
// to integers, among other things. Use isNull() or notNull().
// operator bool() const;
// JC: These must return real bool's (not BOOLs) or else use of the STL
// will generate bool-to-int performance warnings.
bool operator==(const LLUUID &rhs) const;
bool operator!=(const LLUUID &rhs) const;
bool operator<(const LLUUID &rhs) const;

View File

@ -26,16 +26,11 @@
#include "llviewerprecompiledheaders.h"
#if LL_WINDOWS
#pragma warning( disable : 4800 ) // performance warning in <functional>
#endif
#include "llcallingcard.h"
#include <algorithm>
#include "indra_constants.h"
//#include "llcachename.h"
#include "llstl.h"
#include "lltimer.h"
#include "lluuid.h"

View File

@ -284,7 +284,7 @@ void LLFloaterPathfindingCharacters::showCapsule() const
if (LLPathingLib::getInstance() != NULL)
{
LLPathingLib::getInstance()->createPhysicsCapsuleRep(character->getLength(), character->getRadius(),
character->isHorizontal(), character->getUUID());
(BOOL)character->isHorizontal(), character->getUUID());
}
}

View File

@ -30,10 +30,6 @@
#include "llfloaterpathfindingconsole.h"
#include <vector>
#include <boost/signals2.hpp>
#include "llagent.h"
#include "llbutton.h"
#include "llcheckboxctrl.h"
@ -46,7 +42,6 @@
#include "llpanel.h"
#include "llpathfindingnavmeshzone.h"
#include "llpathfindingpathtool.h"
#include "llpathinglib.h"
#include "llsliderctrl.h"
#include "llsd.h"
#include "lltabcontainer.h"

View File

@ -35,9 +35,6 @@
#include "llagent.h"
#include "llpathfindingmanager.h"
#include "llpathinglib.h"
#include "llsingleton.h"
#include "lltool.h"
#include "llviewercamera.h"
#include "llviewerregion.h"
#include "llviewerwindow.h"