fix: players play time got replaced with bots play time.
fix: crlib: fixed clang-analyzer warnings. build: removed predefined optimization flags in debug builds.
This commit is contained in:
parent
5170bb9bcf
commit
f40ca59700
11 changed files with 44 additions and 24 deletions
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
public:
|
||||
template <typename T> T *allocate (const size_t length = 1) {
|
||||
auto memory = reinterpret_cast <T *> (malloc (length * sizeof (T)));
|
||||
auto memory = reinterpret_cast <T *> (malloc (cr::max (1u, length * sizeof (T))));
|
||||
|
||||
if (!memory) {
|
||||
plat.abort ();
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ private:
|
|||
}
|
||||
|
||||
public:
|
||||
explicit Deque () : contents_ (nullptr), capacity_ (0)
|
||||
explicit Deque () : capacity_ (0), contents_ (nullptr)
|
||||
{ }
|
||||
|
||||
Deque (Deque &&rhs) : contents_ (cr::move (rhs.contents_)), capacity_ (rhs.capacity_) {
|
||||
|
|
|
|||
|
|
@ -102,6 +102,11 @@ CR_NAMESPACE_BEGIN
|
|||
# define __PLACEMENT_NEW_INLINE 1
|
||||
#endif
|
||||
|
||||
// disabled gcc warnings
|
||||
#if defined (CR_CXX_GCC)
|
||||
# pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||
#endif
|
||||
|
||||
CR_NAMESPACE_END
|
||||
|
||||
#if defined(CR_WINDOWS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue