Merge pull request #404 from DagAgren/patch-1

Fix clang compiler warnings
This commit is contained in:
Mikko Mononen 2017-09-03 07:43:47 +03:00 committed by GitHub
commit 67e2ecf736
2 changed files with 2 additions and 2 deletions

View File

@ -873,7 +873,8 @@ error:
int fonsAddFont(FONScontext* stash, const char* name, const char* path)
{
FILE* fp = 0;
int dataSize = 0, readed;
int dataSize = 0;
size_t readed;
unsigned char* data = NULL;
// Read in the font data.

View File

@ -390,7 +390,6 @@ void nvgCancelFrame(NVGcontext* ctx)
void nvgEndFrame(NVGcontext* ctx)
{
NVGstate* state = nvg__getState(ctx);
ctx->params.renderFlush(ctx->params.userPtr);
if (ctx->fontImageIdx != 0) {
int fontImage = ctx->fontImages[ctx->fontImageIdx];