From 543ddbe6bfa8072b4c09ccc9abe27237d3598db5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 30 Dec 2018 15:14:00 +1100 Subject: Cleanup: warnings (clang) --- source/blender/blenlib/intern/BLI_timer.c | 2 +- source/blender/blenlib/intern/noise.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern') diff --git a/source/blender/blenlib/intern/BLI_timer.c b/source/blender/blenlib/intern/BLI_timer.c index 7bb919d47e0..fdd89771077 100644 --- a/source/blender/blenlib/intern/BLI_timer.c +++ b/source/blender/blenlib/intern/BLI_timer.c @@ -50,7 +50,7 @@ typedef struct TimerContainer { bool file_load_cb_registered; } TimerContainer; -static TimerContainer GlobalTimer = { 0 }; +static TimerContainer GlobalTimer = {{0}}; static void ensure_callback_is_registered(void); diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index 8ee99544ca5..ee2bab11ade 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -188,7 +188,7 @@ const unsigned char hash[512] = { }; -const float hashvectf[768] = { +static const float hashvectf[768] = { 0.33783, 0.715698, -0.611206, -0.944031, -0.326599, -0.045624, -0.101074, -0.416443, -0.903503, 0.799286, 0.49411, -0.341949, -0.854645, 0.518036, 0.033936, 0.42514, -0.437866, -0.792114, -0.358948, 0.597046, 0.717377, -0.985413, 0.144714, 0.089294, -0.601776, -0.33728, -0.723907, -0.449921, 0.594513, 0.666382, 0.208313, -0.10791, 0.972076, -- cgit v1.2.3