Merge pull request #923 from gsomlo/gls-fix-gcc-warn
software/lib*: address gcc warnings
This commit is contained in:
commit
9b85769499
|
@ -233,7 +233,7 @@ int memtest_data(unsigned int *addr, unsigned long size, int random, struct memt
|
||||||
errors++;
|
errors++;
|
||||||
if (config != NULL && config->on_error != NULL) {
|
if (config != NULL && config->on_error != NULL) {
|
||||||
// call the handler, if non-zero status is returned finish now
|
// call the handler, if non-zero status is returned finish now
|
||||||
if (config->on_error((unsigned int) (addr + i), rdata, seed_32, config->arg) != 0)
|
if (config->on_error((unsigned long) (addr + i), rdata, seed_32, config->arg) != 0)
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
#ifdef MEMTEST_DATA_DEBUG
|
#ifdef MEMTEST_DATA_DEBUG
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#define max(x, y) (((x) > (y)) ? (x) : (y))
|
#define max(x, y) (((x) > (y)) ? (x) : (y))
|
||||||
#define min(x, y) (((x) < (y)) ? (x) : (y))
|
#define min(x, y) (((x) < (y)) ? (x) : (y))
|
||||||
|
|
||||||
__attribute__((unused)) static void cdelay(int i)
|
__attribute__((unused)) void cdelay(int i)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_DISABLE_DELAYS
|
#ifndef CONFIG_DISABLE_DELAYS
|
||||||
while(i > 0) {
|
while(i > 0) {
|
||||||
|
|
Loading…
Reference in New Issue