Skip to content

Commit 6b39f85

Browse files
authored
Fix unused variable warnings in nanosvg.cpp nsvg__dumpFloat
1 parent 35f830d commit 6b39f85

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rEFIt_UEFI/libeg/nanosvg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,12 @@ void nsvg__dumpFloat(CONST char* s, float* t, int N)
227227
DBG("%s: ", s);
228228
for(int i=0; i<N;i++)
229229
{
230+
#if DEBUG_SVG != 0
230231
float a = t[i];
231232
int b = (int)a;
232233
int sign = (a < 0.f);
233234
DBG("%c%d.%06d ", ((b == 0) && sign)?'-':' ', b, (int)(fabsf((a-(float)b)*1.0e6f)));
235+
#endif
234236
}
235237
DBG("\n");
236238
}

0 commit comments

Comments
 (0)