From be8b6e0b188b2babd1989348513846cfdfc02db7 Mon Sep 17 00:00:00 2001 From: ozlb Date: Fri, 12 Jun 2020 23:09:58 +0200 Subject: [PATCH] Fix compile under MacOs implot.cpp:3382:26: error: definition of variable with array type needs an explicit size or an initializer Apple clang version 11.0.0 (clang-1100.0.33.17) Target: x86_64-apple-darwin18.7.0 Thread model: posix --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index 7072803..c0be57e 100644 --- a/implot.cpp +++ b/implot.cpp @@ -3379,7 +3379,7 @@ void ShowColormapScale(double scale_min, double scale_max, float height) { void SetColormap(ImPlotColormap colormap, int samples) { static int csizes[ImPlotColormap_COUNT] = {10,9,9,12,11,11,11,11,11,11}; static OffsetCalculator coffs(csizes); - static ImVec4 cdata[] { + static ImVec4 cdata[] = { // ImPlotColormap_Default // X11 Named Colors ImVec4(0.0f, 0.7490196228f, 1.0f, 1.0f), // Blues::DeepSkyBlue, ImVec4(1.0f, 0.0f, 0.0f, 1.0f), // Reds::Red,