From 01aaff66c8a6e9518b452179089a73bdd0e7d45d Mon Sep 17 00:00:00 2001 From: mogemimi Date: Thu, 16 Jun 2016 14:27:52 +0900 Subject: [PATCH] Fix -Wsometimes-uninitialized warning in release build --- cocos/base/allocator/CCAllocatorStrategyGlobalSmallBlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/base/allocator/CCAllocatorStrategyGlobalSmallBlock.h b/cocos/base/allocator/CCAllocatorStrategyGlobalSmallBlock.h index 4be9cdfc48..9c43bc25c8 100644 --- a/cocos/base/allocator/CCAllocatorStrategyGlobalSmallBlock.h +++ b/cocos/base/allocator/CCAllocatorStrategyGlobalSmallBlock.h @@ -164,7 +164,7 @@ public: } \ break; - void* address; + void* address = nullptr; switch (adjusted_size) {