Skip to content

Commit 6e11c69

Browse files
committed
Fix minor warning
1 parent 1bc00fe commit 6e11c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838

3939
inline void Log_func(const char* const msg, ...)
4040
{
41-
static int count = 1;
4241
char buffer[512];
4342
va_list args;
4443
va_start(args, msg);
4544
vsnprintf(buffer, 512, msg, args);
4645
va_end(args);
4746

4847
#if defined(GG_DEBUG)
48+
static int count = 1;
4949
printf("%d: %s\n", count, buffer);
5050
count++;
5151
#else

0 commit comments

Comments
 (0)