Merge pull request #404 from DagAgren/patch-1
Fix clang compiler warnings
This commit is contained in:
commit
67e2ecf736
@ -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.
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user