summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2010-11-21 14:36:44 +0000
committerJens Arnold <amiconn@rockbox.org>2010-11-21 14:36:44 +0000
commitfeb74ad5175730fbe4ef114e6b461eb875dfe2d4 (patch)
treea8deca45863349eca5b9db3709fff9e7d1923044
parent572c6eeb29723be7ac3d0382b84cc4766558cdc0 (diff)
downloadrockbox-feb74ad5175730fbe4ef114e6b461eb875dfe2d4.tar.gz
rockbox-feb74ad5175730fbe4ef114e6b461eb875dfe2d4.zip
Fix pointer aliasing warning which for some reason was only triggered in SH builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28630 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/test_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index 2650f4b28b..afb25da8d8 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -36,7 +36,7 @@
36#define TEST_TIME 10 /* in seconds */ 36#define TEST_TIME 10 /* in seconds */
37 37
38static unsigned char* audiobuf; 38static unsigned char* audiobuf;
39static ssize_t audiobuflen; 39static size_t audiobuflen;
40 40
41static unsigned short frnd_buffer; 41static unsigned short frnd_buffer;
42static int line = 0; 42static int line = 0;
@@ -207,7 +207,7 @@ static bool file_speed(int chunksize, bool align)
207 long filesize = 0; 207 long filesize = 0;
208 long size, time; 208 long size, time;
209 209
210 if (chunksize >= audiobuflen) 210 if ((unsigned)chunksize >= audiobuflen)
211 return false; 211 return false;
212 212
213 log_text("--------------------", true); 213 log_text("--------------------", true);
@@ -432,7 +432,7 @@ enum plugin_status plugin_start(const void* parameter)
432 rb->closedir(dir); 432 rb->closedir(dir);
433 } 433 }
434 434
435 audiobuf = rb->plugin_get_audio_buffer((size_t *)&audiobuflen); 435 audiobuf = rb->plugin_get_audio_buffer(&audiobuflen);
436 /* align start and length to 32 bit */ 436 /* align start and length to 32 bit */
437 align = (-(int)audiobuf) & 3; 437 align = (-(int)audiobuf) & 3;
438 audiobuf += align; 438 audiobuf += align;