1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-16 07:07:13 +02:00

Initial preparations for CURL and Discord integration.

This commit is contained in:
Sandu Liviu Catalin
2021-01-27 07:27:48 +02:00
parent 8257eb61d6
commit 95705e87c8
1751 changed files with 440547 additions and 854 deletions

View File

@ -13,8 +13,6 @@ SQMODE_DECL_TYPENAME(AreaTypename, _SC("SqArea"))
// ------------------------------------------------------------------------------------------------
AreaManager AreaManager::s_Inst;
#pragma clang diagnostic push
#pragma ide diagnostic ignored "UnusedValue"
// ------------------------------------------------------------------------------------------------
void Area::AddArray(const Sqrat::Array & a)
{
@ -47,7 +45,6 @@ void Area::AddArray(const Sqrat::Array & a)
return SQ_OK;
});
}
#pragma clang diagnostic pop
// ------------------------------------------------------------------------------------------------
void Area::AddCircleEx(SQFloat cx, SQFloat cy, SQFloat cr, SQInteger num_segments)
{

View File

@ -115,8 +115,6 @@ inline CSStr ValidateName(CSStr name)
// Create iterator to name start
CSStr str = name;
// Inspect name characters
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
while ('\0' != *str)
{
// Does it contain spaces?
@ -127,7 +125,6 @@ inline CSStr ValidateName(CSStr name)
// Move to the next character
++str;
}
#pragma clang diagnostic pop
// Return the name
return name;
}

View File

@ -330,10 +330,14 @@ public:
// Unable to find such routine
STHROWF("Unable to find a routine with tag (%s)", tag.mPtr);
// Should not reach this point but if it did, we have to return something
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warray-bounds"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warray-bounds"
#endif
return s_Instances[SQMOD_MAX_ROUTINES].mInst; // Intentional Buffer overflow!
#pragma clang diagnostic pop
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}
/* --------------------------------------------------------------------------------------------
* Check if a routine with a certain tag exists.

View File

@ -664,9 +664,6 @@ protected:
// --------------------------------------------------------------------------------------------
static SignalPool s_Signals; // List of all created signals.
static FreeSignals s_FreeSignals; // List of signals without a name.
#pragma clang diagnostic push
#pragma ide diagnostic ignored "MemberFunctionCanBeStatic"
/* --------------------------------------------------------------------------------------------
* Specialization for when there are no arguments given.
*/
@ -674,7 +671,6 @@ protected:
{
//...
}
#pragma clang diagnostic pop
/* --------------------------------------------------------------------------------------------
* Specialization for when there's only one argument given/remaining.

View File

@ -402,10 +402,7 @@ public:
STHROWF("Invalid entity instance");
}
// Validate the actual entity instance
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
inst->Validate();
#pragma clang diagnostic pop
}
catch (const Sqrat::Exception & e)
{
@ -433,10 +430,7 @@ public:
STHROWF("Invalid entity instance");
}
// Validate the actual entity instance
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
inst->Validate();
#pragma clang diagnostic pop
}
catch (const Sqrat::Exception & e)
{
@ -464,10 +458,7 @@ public:
STHROWF("Invalid entity instance");
}
// Validate the actual entity instance
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
inst->Validate();
#pragma clang diagnostic pop
}
catch (const Sqrat::Exception & e)
{
@ -500,10 +491,7 @@ public:
STHROWF("Invalid entity instance");
}
// Validate the actual entity instance
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCDFAInspection"
inst->Validate();
#pragma clang diagnostic pop
}
catch (const Sqrat::Exception & e)
{