wolf-plugins / wolf-shaper

Waveshaper plugin with a spline-based graph editor (LV2, VST, and CLAP)
https://wolf-plugins.github.io/wolf-shaper/
GNU General Public License v3.0
220 stars 20 forks source link

error: no matching function for call to 'nvgCreateFontMem' #135

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

clang-10 fails:

src/NanoVG.cpp:937:5: error: no matching function for call to 'nvgCreateFontMem'
    nvgCreateFontMem(fContext, NANOVG_DEJAVU_SANS_TTF, (const uchar*)dejavusans_ttf, dejavusans_ttf_size, 0);
    ^~~~~~~~~~~~~~~~
src/nanovg/nanovg.h:551:5: note: candidate function not viable: 3rd argument ('const uchar *' (aka 'const unsigned char *')) would lose const qualifier
int nvgCreateFontMem(NVGcontext* ctx, const char* name, unsigned char* data, int ndata, int freeData);
    ^
pdesaulniers commented 3 years ago

Should be fixed by https://github.com/wolf-plugins/DPF/commit/312142e71079cc393b35956d58b64dbbc2bacd27