This is how look my font.c
Added 'return' at the end of the 'PrintFormat' line, it give an error and don't let compile...
Code:
#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <unistd.h>
#include "font.h"
#include "global.h"
void PrintFormat(u8 size, const u32 color, int x, int y, const char *str, ... ) return;
{
char astr[2048];
va_list ap;
va_start( ap, str );
vsnprintf(astr, sizeof(astr), str, ap);
va_end( ap );
GRRLIB_PrintfTTF(x, y, myFont, astr, size, color);
}
Added 'return' at the end of the 'PrintFormat' line, it give an error and don't let compile...