1
0
Fork 0
forked from len0rd/rockbox

Killed a warning

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6581 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-06-06 00:32:05 +00:00
parent acd903dfd6
commit c10e148a6e
2 changed files with 3 additions and 2 deletions

View file

@ -22,6 +22,7 @@
#include "plugin.h" #include "plugin.h"
#include "playback.h" #include "playback.h"
#include "codeclib.h" #include "codeclib.h"
#include "xxx2wav.h"
struct plugin_api* local_rb; struct plugin_api* local_rb;

View file

@ -35,13 +35,13 @@ unsigned char* filebuf; // The rest of the audio buffer
void* codec_malloc(size_t size) { void* codec_malloc(size_t size) {
void* x; void* x;
char s[32];
static long last_tick = 0;
x=&mallocbuf[mem_ptr]; x=&mallocbuf[mem_ptr];
mem_ptr+=(size+3)&~3; // Keep memory 32-bit aligned (if it was already?) mem_ptr+=(size+3)&~3; // Keep memory 32-bit aligned (if it was already?)
/* /*
if(TIME_AFTER(*(local_rb->current_tick), last_tick + HZ)) { if(TIME_AFTER(*(local_rb->current_tick), last_tick + HZ)) {
char s[32];
static long last_tick = 0;
local_rb->snprintf(s,30,"Memory used: %d",mem_ptr); local_rb->snprintf(s,30,"Memory used: %d",mem_ptr);
local_rb->lcd_putsxy(0,80,s); local_rb->lcd_putsxy(0,80,s);