Merge pull request #68077 from bruvzg/ios_werror
[iOS, 3.x] Fix build with warnings=extra.
This commit is contained in:
commit
5ec2e8d459
8 changed files with 65 additions and 5 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "core/os/dir_access.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/os/time.h"
|
||||
#include "core/print_string.h"
|
||||
#include "core/project_settings.h"
|
||||
|
||||
|
@ -169,11 +170,7 @@ void RotatedFileLogger::rotate_file() {
|
|||
|
||||
if (FileAccess::exists(base_path)) {
|
||||
if (max_files > 1) {
|
||||
char timestamp[21];
|
||||
OS::Date date = OS::get_singleton()->get_date();
|
||||
OS::Time time = OS::get_singleton()->get_time();
|
||||
sprintf(timestamp, "_%04d-%02d-%02d_%02d.%02d.%02d", date.year, date.month, date.day, time.hour, time.min, time.sec);
|
||||
|
||||
String timestamp = Time::get_singleton()->get_datetime_string_from_system().replace(":", ".");
|
||||
String backup_name = base_path.get_basename() + timestamp;
|
||||
if (base_path.get_extension() != String()) {
|
||||
backup_name += "." + base_path.get_extension();
|
||||
|
|
|
@ -36,10 +36,19 @@
|
|||
#include "core/math/vector3.h"
|
||||
#include "core/typedefs.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <LinearMath/btMatrix3x3.h>
|
||||
#include <LinearMath/btTransform.h>
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -37,8 +37,17 @@
|
|||
#include "core/vset.h"
|
||||
#include "shape_owner_bullet.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <LinearMath/btTransform.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -34,8 +34,17 @@
|
|||
#include "bullet_utilities.h"
|
||||
#include "rid_bullet.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btTypedConstraint.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -33,8 +33,17 @@
|
|||
|
||||
#include "core/int_types.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -31,10 +31,19 @@
|
|||
#ifndef GODOT_RAY_WORLD_ALGORITHM_H
|
||||
#define GODOT_RAY_WORLD_ALGORITHM_H
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h>
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionCreateFunc.h>
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionDispatcher.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -33,9 +33,18 @@
|
|||
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <BulletCollision/BroadphaseCollision/btBroadphaseProxy.h>
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
@ -36,10 +36,19 @@
|
|||
#include "rid_bullet.h"
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-copy-with-user-provided-copy"
|
||||
#endif
|
||||
|
||||
#include <LinearMath/btAlignedObjectArray.h>
|
||||
#include <LinearMath/btScalar.h>
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
#if defined(__clang__) && (__clang_major__ >= 13)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue