mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
default to O2
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ elseif(UNIX)
|
||||
find_package(Curses REQUIRED)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -DDEBUG_LEVEL=2 -DPRODUCTION=0 -g -O0")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DDEBUG_LEVEL=0 -DPRODUCTION=1 -O3 -s")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DDEBUG_LEVEL=0 -DPRODUCTION=1 -O2 -s")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-write-strings")
|
||||
|
||||
|
||||
@@ -1121,7 +1121,7 @@ jobject JNICALL ScriptMethodsDataTableNamespace::dataTableGetRow(JNIEnv *env, jo
|
||||
|
||||
LocalRefPtr target = createNewObject(JavaLibrary::getClsDictionary(), JavaLibrary::getMidDictionary());
|
||||
if (target == LocalRef::cms_nullPtr)
|
||||
return false;
|
||||
return JNI_FALSE;
|
||||
|
||||
for (int i = 0; i < dt->getNumColumns(); ++i)
|
||||
{
|
||||
|
||||
@@ -1339,7 +1339,7 @@ jstring JNICALL ScriptMethodsShipNamespace::getShipComponentName(JNIEnv * env, j
|
||||
{
|
||||
ShipObject const * const shipObject = JavaLibrary::getShipThrow(env, jobject_shipId, "getShipComponentName() invalid ship", false);
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
Unicode::String const & name = shipObject->getComponentName(chassisSlot);
|
||||
if (!name.empty())
|
||||
@@ -4073,7 +4073,7 @@ jlongArray JNICALL ScriptMethodsShipNamespace::getShipCargoHoldContentsResourceT
|
||||
{
|
||||
ShipObject const * const shipObject = getShipThrowTestSlot(env, jobject_shipId, "getShipCargoHoldContents()", false, static_cast<int>(ShipChassisSlotType::SCST_cargo_hold));
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
ShipObject::NetworkIdIntMap const & contents = shipObject->getCargoHoldContents();
|
||||
|
||||
@@ -4099,7 +4099,7 @@ jintArray JNICALL ScriptMethodsShipNamespace::getShipCargoHoldContentsAmounts(JN
|
||||
{
|
||||
ShipObject const * const shipObject = getShipThrowTestSlot(env, jobject_shipId, "getShipCargoHoldContents()", false, static_cast<int>(ShipChassisSlotType::SCST_cargo_hold));
|
||||
if (!shipObject)
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
ShipObject::NetworkIdIntMap const & contents = shipObject->getCargoHoldContents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user